From 64333f8097b11caeeabea4b922287de4fe608918 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 29 Nov 2005 10:10:42 +0000 Subject: [PATCH] r3565@krups: intrigeri | 2005-11-16 20:43:44 +0100 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 | 2 +- src/ninjahelper.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backupninja.in b/src/backupninja.in index f43eaab..7855a6d 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -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 diff --git a/src/ninjahelper.in b/src/ninjahelper.in index cf24e7b..9ac42a8 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -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 -- 2.30.2