From 2e2f74b65a0f6dd74b76c36565254174f091aa76 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 21 Oct 2013 16:22:02 +0300 Subject: [PATCH] basename of config --- func/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/func/main.sh b/func/main.sh index eee652d0b..2d5a9dd86 100644 --- a/func/main.sh +++ b/func/main.sh @@ -223,7 +223,7 @@ is_object_suspended() { spnd=$(grep "$2='$3'" $USER_DATA/$1.conf|grep "SUSPENDED='yes'") fi if [ -z "$spnd" ]; then - echo "Error: $1 $3 is not suspended" + echo "Error: $(basename $1) $3 is not suspended" log_event "$E_SUSPENDED" "$EVENT" exit $E_SUSPENDED fi @@ -237,7 +237,7 @@ is_object_unsuspended() { spnd=$(grep "$2='$3'" $USER_DATA/$1.conf|grep "SUSPENDED='yes'") fi if [ ! -z "$spnd" ]; then - echo "Error: $1 $3 is already suspended" + echo "Error: $(basename $1) $3 is already suspended" log_event "$E_UNSUSPENDED" "$EVENT" exit $E_UNSUSPENDED fi