really close
[feisty_meow.git] / scripts / system / common_sysadmin.sh
index 15e112707c67b864816e6e4d882394190ff2456a..d3dfbad1d5a793b9ff2f050aaa95d26ef337a0c5 100644 (file)
@@ -118,7 +118,7 @@ function remove_subdomain()
   fi
 
   # see if subdomain already present in config.
-  if [ ! $(grep -q "$old_domain" "$domain_file") ]; then
+  if ! grep -q "$old_domain" "$domain_file"; then
     echo "The subdomain $subdomain is already missing from the domain"
     echo "configuration file: $domain_file"
     echo "Our work is apparently done for removing it."
@@ -150,7 +150,7 @@ function add_new_subdomain()
   fi
 
   # see if subdomain already present in config.
-  if [ $(grep -q "$new_domain" "$domain_file") ]; then
+  if grep -q "$new_domain" "$domain_file"; then
     echo "The subdomain $subdomain already seems to exist in the domain"
     echo "configuration file: $domain_file"
     echo "Please edit the config file to remove the subdomain before trying"