Skip to content

Commit 8c85420

Browse files
committed
fixed bug in shell verication
1 parent b48f739 commit 8c85420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/shared.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ format_validation() {
6161

6262
# Checking shell
6363
check_shell=$(/usr/bin/chsh --list-shells | grep -w "$val" )
64-
if [ -z "$1"] || [ -z "$check_shell" ]; then
64+
if [ -z "$1" ] || [ -z "$check_shell" ]; then
6565
echo "Error: shell not found"
6666
log_event 'debug' "$E_NOTEXIST $V_EVENT"
6767
exit $E_NOTEXIST

0 commit comments

Comments
 (0)