From 6cea21099d9858db41be0a01c5a03cd905929191 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Tue, 26 Apr 2022 16:10:09 +0200 Subject: [PATCH] BUG fix: type -P instead of type -p to check command is in PATH --- bash/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/sync.sh b/bash/sync.sh index 9e163cb..647d4e4 100755 --- a/bash/sync.sh +++ b/bash/sync.sh @@ -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