From: Bastian Dehn Date: Sun, 25 May 2025 13:16:02 +0000 (+0200) Subject: add key check exists X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=99782c936ac738d79df764e94448f905aa27eeca;p=simple-backup.git add key check exists --- diff --git a/backupmount b/backupmount index 7371da4..1b627b4 100755 --- a/backupmount +++ b/backupmount @@ -60,6 +60,9 @@ device_mount() [ "$key" != "null" ] \ || errlog "config.yaml key for $media missing" \ || return $? + [ -f "$key" ] \ + || errlog "key $key not exists" \ + || return $? infolog "use key $key" local volume=$(cat "config.yaml" \ | yq --raw-output ".backup_volume")