Merge pull request #1296 from jooola/fix/installer_after_format
Fix installer bad logic
This commit is contained in:
commit
a44b666203
6
install
6
install
|
@ -583,10 +583,12 @@ while :; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z $web_root || ! -d $web_root ]]; then
|
# If web_root is given, check that it exists
|
||||||
echo "$web_root doesn't exist!"
|
if [[ -n $web_root && ! -d $web_root ]]; then
|
||||||
|
echo "$web_root directory not found!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n.____ ._____. ___________.__ "
|
echo -e "\n.____ ._____. ___________.__ "
|
||||||
echo "| | |__\_ |_________ ___\__ ___/|__| _____ ____ "
|
echo "| | |__\_ |_________ ___\__ ___/|__| _____ ____ "
|
||||||
echo "| | | || __ \_ __ \_/ __ \| | | |/ \_/ __ \ "
|
echo "| | | || __ \_ __ \_/ __ \| | | |/ \_/ __ \ "
|
||||||
|
|
Loading…
Reference in New Issue