From 06039a9e4725295fa2ef51d25be3094683a60421 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Wed, 26 Jun 2019 08:56:05 +0200 Subject: [PATCH] fix warnings on first tomb open fix issue #324 --- tomb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomb b/tomb index edd5a83..87aae0a 100755 --- a/tomb +++ b/tomb @@ -2192,7 +2192,7 @@ _update_control_file() { # $1 = path to control file # $2 = contents [[ "$2" = "" ]] && return 1 - [[ -r "$1" ]] && rm -f "$1" + _sudo touch "$1" print "$2" > "$1" _sudo chown ${_UID}:${_GID} "$1" _verbose "updated control file $1 = $2"