Skip to content

Commit

Permalink
Fix deployment script to accept multiple [sc-136060] (#88)
Browse files Browse the repository at this point in the history
* Accept multi worded org names
  • Loading branch information
uttie-huntress authored Jul 11, 2024
1 parent d89d7c9 commit 43cfc76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions Addigy/InstallHuntress-macOS-Addigy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,12 @@ if grep -Fq "$invalid_key" "$install_script"; then
exit 1
fi

install_cmd="/bin/zsh $install_script -a $accountKey -o $organizationKey -v"
logger "=============== Begin Installer Logs ==============="
if [ "$install_system_extension" = true ]; then
install_cmd+=" --install_system_extension"
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v --install_system_extension)"
else
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v)"
fi
install_result=$(eval "${install_cmd}")

logger "=============== Begin Installer Logs ==============="

if [ $? != "0" ]; then
logger "Installer Error: $install_result"
Expand Down
6 changes: 3 additions & 3 deletions Bash/InstallHuntress-macOS-bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ if grep -Fq "$invalid_key" "$install_script"; then
exit 1
fi

install_cmd="/bin/zsh $install_script -a $accountKey -o $organizationKey -v"
if [ "$install_system_extension" = true ]; then
install_cmd+=" --install_system_extension"
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v --install_system_extension)"
else
install_result="$(/bin/bash "$install_script" -a "$accountKey" -o "$organizationKey" -v)"
fi
install_result=$(eval "${install_cmd}")

logger "=============== Begin Installer Logs ==============="

Expand Down

0 comments on commit 43cfc76

Please sign in to comment.