SHA256
fix executable checks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user