diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-17 06:45:00 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-17 06:46:22 -0400 |
commit | f036b9c0da685d11e341d61e5aaeb75cac576111 (patch) | |
tree | 22b08ae6bb7e83d529fe49fe99ea8da87a8d25a4 /boxconf | |
parent | 89cdd1c872694797a8f6f0185be2b2cd3467bfcc (diff) | |
download | infrastructure-f036b9c0da685d11e341d61e5aaeb75cac576111.tar.gz |
add pkg_repository hostclass
Diffstat (limited to 'boxconf')
-rwxr-xr-x | boxconf | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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" |