From 99782c936ac738d79df764e94448f905aa27eeca Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 25 May 2025 15:16:02 +0200 Subject: [PATCH] add key check exists --- backupmount | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.47.3