Description: Avoid error messages when opening a new tomb Make sure control file exists and has user ownership before user writes to it. Author: Sven Geuer Bug: https://github.com/dyne/Tomb/issues/369 Last-Update: 2019-11-04 --- a/tomb +++ b/tomb @@ -2197,14 +2197,15 @@ # {{{ Open _update_control_file() { - # replaces a control file with new contents and gives it user ownership + # make sure a control file exists, gives it user ownership + # and replaces it with new contents # stdin = contents # $1 = path to control file # $2 = contents [[ "$2" = "" ]] && return 1 _sudo touch "$1" - print "$2" > "$1" _sudo chown ${_UID}:${_GID} "$1" + print "$2" > "$1" _verbose "updated control file $1 = $2" } cted'>koszko Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/artwork.scm
AgeCommit message (Expand)Author
2019-06-10artwork: Update snapshot to 2f2fe74....* gnu/artwork.scm (%artwork-repository): Update to 2f2fe74. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Diego Nicola Barbato
2019-03-05artwork: Update snapshot to b975164....* gnu/artwork.scm (%artwork-repository): Update to b975164. Ludovic Courtès
2019-02-10artwork: Update snapshot to e951905....* gnu/artwork.scm (%artwork-repository): Update to e951905. Ludovic Courtès
2018-11-05artwork: Clone over HTTPS....Suggested by Leo Famulari <leo@famulari.name> at <https://lists.gnu.org/archive/html/help-guix/2018-11/msg00039.html>. * gnu/artwork.scm (%artwork-repository): Switch to HTTPS URL. Ludovic Courtès
2017-06-07artwork: Use a descriptive name for the source directory....* gnu/artwork.scm (%artwork-repository): Set a descriptive file-name and use the full commit hash when fetching. Leo Famulari
2015-05-07artwork: Update to latest version....* gnu/artwork.scm (%artwork-repository): Update. * gnu/services/xorg.scm (%default-slim-theme-name): Change to "0.x". * gnu/system/grub.scm (%background-image): Change to GuixSD-fully-black-4-3.svg. Ludovic Courtès