Browse Source

Update main.sh

Jaap Marcus 8 months ago
parent
commit
431df78a68
1 changed files with 2 additions and 2 deletions
  1. 2 2
      func/main.sh

+ 2 - 2
func/main.sh

@@ -403,8 +403,8 @@ parse_object_kv_list() {
 
 
 # Check if object is supended
 # Check if object is supended
 is_object_suspended() {
 is_object_suspended() {
-	if [ $2 = 'USER' ]; then
-		spnd=$(cat $USER_DATA/$1.conf | grep "SUSPENDED='yes'")
+	if [ "$2" = 'USER' ]; then
+		spnd=$(grep "SUSPENDED='yes'" $USER_DATA/$1.conf)
 	else
 	else
 		spnd=$(grep "$2='$3'" $USER_DATA/$1.conf | grep "SUSPENDED='yes'")
 		spnd=$(grep "$2='$3'" $USER_DATA/$1.conf | grep "SUSPENDED='yes'")
 	fi
 	fi