summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
aabc2bb)
ninjahelper and backupninja: cosmetic enhancement of the "am I root?" test.
[ -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!"