From 4c15279f07775f7af21441e7f61aa00ac2699710 Mon Sep 17 00:00:00 2001 From: chabad360 Date: Wed, 1 Aug 2018 21:29:38 -0700 Subject: [PATCH] fixed issue where if you didnt supply 2nd arg in init it would default --- dbench | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbench b/dbench index 68a801b5..3f8924d1 100644 --- a/dbench +++ b/dbench @@ -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