summaryrefslogtreecommitdiffstats
path: root/usr.sbin/periodic
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 03:37:34 +0000
committerkris <kris@FreeBSD.org>2000-11-26 03:37:34 +0000
commit05c00631fc2128b7756c38d71ae1d0626a0078fb (patch)
tree591ccc8a98a9bc17f0daa6a3b6957b4dd53403fc /usr.sbin/periodic
parenteb309bb4e994252581b59c0163daf4c632739c67 (diff)
downloadFreeBSD-src-05c00631fc2128b7756c38d71ae1d0626a0078fb.zip
FreeBSD-src-05c00631fc2128b7756c38d71ae1d0626a0078fb.tar.gz
Properly fix the temporary file creation in the case of multiple
command-line arguments. Noticed by: dynamo <dynamo@ime.net>
Diffstat (limited to 'usr.sbin/periodic')
-rw-r--r--usr.sbin/periodic/periodic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh
index ce38ba2..6c21c21 100644
--- a/usr.sbin/periodic/periodic.sh
+++ b/usr.sbin/periodic/periodic.sh
@@ -92,7 +92,6 @@ do
cp /dev/null $tmp_output
fi
done
- rm -f $tmp_output
done
if [ $empty = TRUE ]
then
@@ -101,3 +100,4 @@ do
fi
} | eval $pipe
done
+rm -f $tmp_output
OpenPOWER on IntegriCloud