Przeglądaj źródła

fixed bug in shell verication

Serghey Rodin 14 lat temu
rodzic
commit
8c854201a3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      func/shared.func

+ 1 - 1
func/shared.func

@@ -61,7 +61,7 @@ format_validation() {
 
         # Checking shell
         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"
             log_event 'debug' "$E_NOTEXIST $V_EVENT"
             exit $E_NOTEXIST