Issue was with both messed up if and opposite placement for default

This commit is contained in:
chabad360 2018-08-01 21:25:50 -07:00
parent ee2c9c3a97
commit 2f7ca23290

10
dbench
View file

@ -32,9 +32,13 @@ if [[ $# -eq 0 ]]; then
docker exec -it frappe bash 'bench $@'
elif [ $1 == '--init' ]; then
site=$2
if ! $2; then site="site1.local"; fi
if ! $3; then site="site1.local"; fi
site=$3
if [ -z "$3" ]; then
site="site1.local"
fi
if [ -z "$2" ]; then
site="site1.local"
fi
echo "$site"
frappe_installer $site
if [ "$2" == '-e' ]; then