diff --git a/lib/secret.sh b/lib/secret.sh index 8348e1f..f5858d8 100644 --- a/lib/secret.sh +++ b/lib/secret.sh @@ -42,7 +42,7 @@ get_file_secret() { local path="$1" secret - if [[ -s "$path" ]]; then + if [[ ! -s "$path" ]]; then prnt E "get_file_secret: missing secret file" die 10 fi