mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -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
|
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue