fixed issue where if you didnt supply 2nd arg in init it would default

This commit is contained in:
chabad360 2018-08-01 21:29:38 -07:00
parent 2f7ca23290
commit 4c15279f07

4
dbench
View file

@ -27,7 +27,7 @@ function frappe_installer {
echo "$1 added" echo "$1 added"
} }
if [[ $# -eq 0 ]]; then if [[ $# -eq 1 ]]; then
echo "$@" echo "$@"
docker exec -it frappe bash 'bench $@' docker exec -it frappe bash 'bench $@'
@ -38,6 +38,8 @@ elif [ $1 == '--init' ]; then
fi fi
if [ -z "$2" ]; then if [ -z "$2" ]; then
site="site1.local" site="site1.local"
else
site=$2
fi fi
echo "$site" echo "$site"
frappe_installer $site frappe_installer $site