X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fsbin%2Fdsa-update-apt-status;h=c506feaf2f87841573fcbec95a04b2111ee40abc;hb=0186eaeb34890c5eacc7baead5466be9bfae03e1;hp=7919f71a1523e2e52cd2259948ff148197e09052;hpb=e4b50b7ffb43e15e014e00939e785a64227b6687;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/sbin/dsa-update-apt-status b/dsa-nagios-checks/sbin/dsa-update-apt-status index 7919f71..c506fea 100755 --- a/dsa-nagios-checks/sbin/dsa-update-apt-status +++ b/dsa-nagios-checks/sbin/dsa-update-apt-status @@ -51,9 +51,7 @@ run_required() { return $norun } -if [ ! -d "${STATUSDIR}" ]; then - mkdir -p "${STATUSDIR}" -fi +mkdir -p "${STATUSDIR}" # do stuff only when required, or when asked to if [ "${1:-""}" != "-f" ] ; then