Browse Source

Update main.sh

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

+ 1 - 1
func/main.sh

@@ -404,7 +404,7 @@ parse_object_kv_list() {
 # Check if object is supended
 # Check if object is supended
 is_object_suspended() {
 is_object_suspended() {
 	if [ "$2" = 'USER' ]; then
 	if [ "$2" = 'USER' ]; then
-		spnd=$(grep "SUSPENDED='yes'" | $USER_DATA/$1.conf)
+		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