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