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
[ -f "$logfile" ] || touch $logfile
if [ "$UID" != "0" ]; then
[ -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"
# am I running as root?
if [ "$UID" != "0" ]; then
# 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!"