Browse Source

fixed bug in shell verication

Serghey Rodin 14 năm trước cách đây
mục cha
commit
8c854201a3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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