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