From 127fb83567cc57d8283c53ea5df194a613980b7e181fa8e4270822f5b32c3059 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Sat, 22 Aug 2026 05:37:25 +0200 Subject: [PATCH] fix executable checks --- pbc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbc b/pbc index 919f9df..36f8ae2 100755 --- a/pbc +++ b/pbc @@ -34,7 +34,7 @@ EOF function full_usage() { usage true - [ ! -e "$PBC" ] && echo "Error: $PBC is not executable!" >&2 && return 254 + [ ! -x "$PBC" ] && echo "Error: $PBC is not executable!" >&2 && return 254 echo "Commands of proxmox-backup-client:" echo "$PBC" help | tail -n +3 @@ -273,7 +273,7 @@ else source "$cfgfile" || exit $? PBC=${PBC:-/usr/local/bin/proxmox-backup-client} [ ! -f "$PBC" ] && echo "Error: $PBC: no such file" >&2 && exit 200 - [ ! -e "$PBC" ] && echo "Error: $PBC: not executable" >&2 && exit 200 + [ ! -x "$PBC" ] && echo "Error: $PBC: not executable" >&2 && exit 200 ! command -v jq >/dev/null && echo "Error: jq executable not found!" >&2 && exit 200 fi