Skip to content

Commit

Permalink
fix: Make install scripts uniform in behavior (#1398)
Browse files Browse the repository at this point in the history
Make install scripts uniform in behavior
  • Loading branch information
Dylan-M authored Dec 19, 2023
1 parent 1d95c36 commit c29f219
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scripts/install/install_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ check_prereqs()
{
banner "Checking Prerequisites"
increase_indent
root_check
os_check
dependencies_check
success "Prerequisite check complete!"
Expand Down Expand Up @@ -659,9 +660,7 @@ main()
# (e.g. uninstall) can run

observiq_banner

check_prereqs
root_check

if [ $# -ge 1 ]; then
while [ -n "$1" ]; do
Expand Down
9 changes: 7 additions & 2 deletions scripts/install/install_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,13 @@ uninstall()

main()
{
# We do these checks before we process arguments, because
# some of these options bail early, and we'd like to be sure that those commands
# (e.g. uninstall) can run

observiq_banner
check_prereqs

if [ $# -ge 1 ]; then
while [ -n "$1" ]; do
case "$1" in
Expand Down Expand Up @@ -809,8 +816,6 @@ main()
done
fi

observiq_banner
check_prereqs
connection_check
setup_installation
install_package
Expand Down

0 comments on commit c29f219

Please sign in to comment.