From: Nicolas Boisselier Date: Tue, 31 Jan 2017 23:04:17 +0000 (+0000) Subject: cron_install fix bug X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b4ec112a6cc472a5a4e4570546c2731c0f62f47c;p=nb.git cron_install fix bug --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index ce1a1109..15b19724 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -461,7 +461,7 @@ cron_d_install() { if [ "$test" = "1" ]; then printf '%s' "$FUNCNAME: /etc/cron.d: $fname" - [ "$(cat $file 2>/dev/null)" != "$(cat /etc/cron.d/$fname)" ] && echo ': Changed' && return + [ "$(cat $file 2>/dev/null)" != "$(cat /etc/cron.d/$fname 2>/dev/null)" ] && echo ': Changed' && return echo ': Not changed' return 1 fi