diff --git a/src/bash-rollup.sh b/src/bash-rollup.sh index 6291741..4c0a6d0 100755 --- a/src/bash-rollup.sh +++ b/src/bash-rollup.sh @@ -178,7 +178,7 @@ if [[ -n "${SOURCE_ONLY}" ]]; then fi done < <(cat "${MAIN_FILE}") > "${OUT_FILE}" # Note we replace existing file if any. else # process for reals - if ! which -s perl; then + if [[ -z "$(which perl)" ]]; then echoerrandexit "Perl is required." exit 10 fi