mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
basename of config
This commit is contained in:
parent
f357610bc7
commit
2e2f74b65a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue