Skip to content
Snippets Groups Projects
Commit 5b392f68 authored by intrigeri's avatar intrigeri
Browse files

r3565@krups: intrigeri | 2005-11-16 20:43:44 +0100

 ninjahelper and backupninja: cosmetic enhancement of the "am I root?" test.
parent aabc2bbe
No related branches found
No related tags found
No related merge requests found
...@@ -431,7 +431,7 @@ fi ...@@ -431,7 +431,7 @@ fi
[ -f "$logfile" ] || touch $logfile [ -f "$logfile" ] || touch $logfile
if [ "$UID" != "0" ]; then if [ "$UID" != "0" ]; then
echo "$0 can only be run as root" echo "`basename $0` can only be run as root"
exit 1 exit 1
fi fi
......
...@@ -311,7 +311,7 @@ fi ...@@ -311,7 +311,7 @@ fi
# am I running as root? # am I running as root?
if [ "$UID" != "0" ]; then if [ "$UID" != "0" ]; then
msgBox "warning" "$0 must be run by root!" msgBox "warning" "`basename $0` must be run by root!"
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment