mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
fixed bug in shell verication
This commit is contained in:
parent
b48f7399fd
commit
8c854201a3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue