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