aboutsummaryrefslogtreecommitdiff
path: root/boxconf
diff options
context:
space:
mode:
Diffstat (limited to 'boxconf')
-rwxr-xr-xboxconf4
1 files changed, 2 insertions, 2 deletions
diff --git a/boxconf b/boxconf
index c9955e7..3f7b311 100755
--- a/boxconf
+++ b/boxconf
@@ -26,8 +26,8 @@ while getopts :hde:s:X _bc_opt; do
esac
done
-[ $(( OPTIND - $# )) -eq 1 ] && usage 'HOST not specified'
-eval "BOXCONF_HOSTNAME=\$$#"
+[ $(( OPTIND - $# )) -eq 0 ] || usage
+eval "BOXCONF_HOSTNAME=\$$((OPTIND))"
for _bc_lib in "${BOXCONF_ROOT}/lib"/*; do
. "$_bc_lib"