Serghey Rodin 12 лет назад
Родитель
Сommit
2e2f74b65a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      func/main.sh

+ 2 - 2
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