From: Siavash Tavakoli Date: Tue, 18 Feb 2020 13:24:38 +0000 (+0200) Subject: util: dovecot-sysreport: Fix bug in perl existence check X-Git-Tag: 2.3.11.2~598 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59458ffb60fac9d9354e317c9a5b5027ff40f2bd;p=thirdparty%2Fdovecot%2Fcore.git util: dovecot-sysreport: Fix bug in perl existence check Also use "[[" command to be consistent with rest of the script. --- diff --git a/src/util/dovecot-sysreport b/src/util/dovecot-sysreport index 7fb2c105d1..d0d6fe79cc 100755 --- a/src/util/dovecot-sysreport +++ b/src/util/dovecot-sysreport @@ -137,7 +137,7 @@ f = open('$SRTEMP/conf$cf', "w") f.write(hidden) f.close() HEREDOC - elif ! [ -x "$(command -v perl)" ]; then + elif [[ -x "$(command -v perl)" ]]; then perl -pe 's/(? $SRTEMP/conf$cf else