From 930a40098d8cc7999d8b3eb54b16e314162748fa Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Sun, 2 Sep 2012 22:14:05 -0700 Subject: Fix bashisms in cron jobs. http://mywiki.wooledge.org/Bashism --- debian/bcfg2.cron.daily | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'debian/bcfg2.cron.daily') diff --git a/debian/bcfg2.cron.daily b/debian/bcfg2.cron.daily index b28b2062b..f2d1efb9f 100755 --- a/debian/bcfg2.cron.daily +++ b/debian/bcfg2.cron.daily @@ -1,10 +1,10 @@ #!/bin/sh BCFG2CRON= -if [[ -x /usr/libexec/bcfg2-cron ]]; then +if [ -x /usr/libexec/bcfg2-cron ]; then BCFG2CRON=/usr/libexec/bcfg2-cron -elif [[ -x /usr/lib/bcfg2/bcfg2-cron ]]; then +elif [ -x /usr/lib/bcfg2/bcfg2-cron ]; then BCFG2CRON=/usr/lib/bcfg2/bcfg2-cron -elif type bcfg2-cron >& /dev/null; then +elif type bcfg2-cron 2>&1 >/dev/null; then BCFG2CRON=bcfg2-cron else echo "No bcfg2-cron command found" -- cgit v1.2.3-1-g7c22