r3565@krups: intrigeri | 2005-11-16 20:43:44 +0100
authorintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 29 Nov 2005 10:10:42 +0000 (10:10 +0000)
committerintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 29 Nov 2005 10:10:42 +0000 (10:10 +0000)
 ninjahelper and backupninja: cosmetic enhancement of the "am I root?" test.

git-svn-id: http://code.autistici.org/svn/backupninja/trunk@249 758a04ac-41e6-0310-8a23-8373a73cc35d

src/backupninja.in
src/ninjahelper.in

index f43eaabd2eb1f2767764025bb6b6053785f24335..7855a6d894791b3dc139a80a9892790d9dd38bfb 100755 (executable)
@@ -431,7 +431,7 @@ fi
 [ -f "$logfile" ] || touch $logfile
 
 if [ "$UID" != "0" ]; then
-       echo "$0 can only be run as root"
+       echo "`basename $0` can only be run as root"
        exit 1
 fi
 
index cf24e7bf803f32ad2f12349f0ef9079151f646dc..9ac42a86ec7506db6659def55b9ece141736146d 100755 (executable)
@@ -311,7 +311,7 @@ fi
 
 # am I running as root?
 if [ "$UID" != "0" ]; then
-       msgBox "warning" "$0 must be run by root!"
+       msgBox "warning" "`basename $0` must be run by root!"
        exit 1
 fi