Merge pull request #1296 from jooola/fix/installer_after_format

Fix installer bad logic
This commit is contained in:
Kyle Robbertze 2021-08-17 13:53:40 +02:00 committed by GitHub
commit a44b666203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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 "| | | || __ \_ __ \_/ __ \| | | |/ \_/ __ \ "