From ceb339370d7a0cc4a83fe54103a650dfb3f72261 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Wed, 17 Jul 2024 08:12:34 -0400 Subject: fix boxconf argument parsing --- boxconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boxconf') diff --git a/boxconf b/boxconf index 3f7b311..c1fdf89 100755 --- a/boxconf +++ b/boxconf @@ -27,7 +27,7 @@ while getopts :hde:s:X _bc_opt; do done [ $(( OPTIND - $# )) -eq 0 ] || usage -eval "BOXCONF_HOSTNAME=\$$((OPTIND))" +eval "BOXCONF_HOSTNAME=\$$#" for _bc_lib in "${BOXCONF_ROOT}/lib"/*; do . "$_bc_lib" @@ -36,5 +36,5 @@ done if [ -n "${_bc_run:-}" ]; then _boxconf_run else - _boxconf_deploy "${BOXCONF_SSH_HOST:-$1}" "$BOXCONF_HOSTNAME" "$@" + _boxconf_deploy "${BOXCONF_SSH_HOST:-$BOXCONF_HOSTNAME}" "$BOXCONF_HOSTNAME" "$@" fi -- cgit v1.2.3