BUG fix: type -P instead of type -p to check command is in PATH

This commit is contained in:
2022-04-26 16:10:09 +02:00
parent f623bfe80c
commit 6cea21099d

View File

@@ -395,7 +395,7 @@ log -n "Compression:" && [[ $ZIPMAIL = zip ]] && log "gzip" || log "none"
declare -a cmdavail=()
for cmd in rsync gzip base64 sendmail; do
log -n "Checking for $cmd... "
if type -p "$cmd" > /dev/null; then
if type -P "$cmd" > /dev/null; then
log "ok"
else
if [[ "$cmd" = "gzip" ]]; then