fixed bug in shell verication

This commit is contained in:
Serghey Rodin 2012-01-18 14:26:05 +02:00
commit 8c854201a3

View file

@ -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