X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fsbin%2Fdsa-update-apt-status;h=c506feaf2f87841573fcbec95a04b2111ee40abc;hb=2779e1ff41151a27d92763ad633f4eb41fbab064;hp=7919f71a1523e2e52cd2259948ff148197e09052;hpb=70eb5f667b70342866e791e9ca8d4d3a3b70b569;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