From ee2c9c3a97a24c06bbc401df15607dc50f391815 Mon Sep 17 00:00:00 2001 From: chabad360 Date: Wed, 1 Aug 2018 21:13:17 -0700 Subject: [PATCH] decided to dump reseting args --- dbench | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbench b/dbench index 196a1239..db7f019c 100644 --- a/dbench +++ b/dbench @@ -33,8 +33,8 @@ if [[ $# -eq 0 ]]; then elif [ $1 == '--init' ]; then site=$2 - if ! $2; then set -- "${@:1}" "site1.local" && site=$2; fi - if ! $3; then set -- "${@:1:2}" "site1.local" && site=$3; fi + if ! $2; then site="site1.local"; fi + if ! $3; then site="site1.local"; fi echo "$site" frappe_installer $site if [ "$2" == '-e' ]; then