Changed exit 2 to exit 1 as it seems to be The Right Thing since exit 2 is misuse-something

This commit is contained in:
2013-12-26 18:58:45 +01:00
parent d344279e8d
commit 4c7b91bba4
5 changed files with 10 additions and 10 deletions

View File

@@ -8,13 +8,13 @@
# Sanity check
if [ $EUID -ne 0 ]; then
echo "`basename $0` must run as root"
exit 2
exit 1
fi
rm /tmp/testdir/* 2> /dev/null
if [ $? -ne 0 ]; then
echo "Something went wrong when deleting files in /tmp/testdir/"
exit 2
exit 1
fi
exit 0