Fix check_file returning success on missing file.

master
Icedream 2025-05-22 15:22:31 +02:00
parent a0920a6f87
commit 04ee881943
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ remove_file() {
check_file() {
local path="$1" sha256hash="${2:-}"
if [ ! -f "$path" ]; then
return
return 1
fi
sha256sum -c - <<< "${sha256hash} ${path}" >/dev/null 2>/dev/null
}