INNER CODE UNIT · Shell
install
gruntwork-io/bash-commons · modules/bash-commons/install.sh:38
function install {
local install_dir="$DEFAULT_INSTALL_DIR"
local install_dir_owner="$DEFAULT_USER_NAME"
local install_dir_group="$DEFAULT_USER_GROUP_NAME"
while [[ $# -gt 0 ]]; do
local key="$1"
case "$key" in
--dir)
assert_not_empty "$key" "$2"
install_dir="$2"
shift
;;
--owner)
assert_not_empty "$key" "$2"
install_dir_owner="$2"
shift