Selaa lähdekoodia

fixed bug in shell verication

Serghey Rodin 14 vuotta sitten
vanhempi
sitoutus
8c854201a3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      func/shared.func

+ 1 - 1
func/shared.func

@@ -61,7 +61,7 @@ format_validation() {
 
 
         # Checking shell
         # Checking shell
         check_shell=$(/usr/bin/chsh --list-shells | grep -w "$val" )
         check_shell=$(/usr/bin/chsh --list-shells | grep -w "$val" )
-        if [ -z "$1"] || [ -z "$check_shell" ]; then
+        if [ -z "$1" ] || [ -z "$check_shell" ]; then
             echo "Error: shell not found"
             echo "Error: shell not found"
             log_event 'debug' "$E_NOTEXIST $V_EVENT"
             log_event 'debug' "$E_NOTEXIST $V_EVENT"
             exit $E_NOTEXIST
             exit $E_NOTEXIST