From deb9f721fde7434c77691e60a01e4ef789804d1b Mon Sep 17 00:00:00 2001 From: jfraeys <13443851+jfraeys@users.noreply.github.com> Date: Thu, 30 Nov 2023 21:43:02 -0500 Subject: [PATCH] Update setup_dev_env --- setup_dev_env | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup_dev_env b/setup_dev_env index c18b375..a72495c 100755 --- a/setup_dev_env +++ b/setup_dev_env @@ -36,6 +36,11 @@ if [ "$(uname)" == "Darwin" ]; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" PACKAGE_MANAGER="brew" fi + + # Enable Brew auto-update if the flag is set + if [ "$ENABLE_AUTO_UPDATE" == true ]; then + brew autoupdate --start --upgrade --cleanup + fi elif [ "$(uname)" == "Linux" ]; then # Check if on Linux and use the appropriate package manager if command_exists apt-get; then @@ -138,11 +143,6 @@ tmux source ~/.tmux.conf # Inform the user and wait for input echo "Zsh, Tmux, Neovim, Go, and development tools configurations applied." -# Enable Brew auto-update if the flag is set -if [ "$ENABLE_AUTO_UPDATE" == true ]; then - brew autoupdate --start --upgrade --cleanup -fi - # Enable notifications if the flag is set if [ "$ENABLE_NOTIFICATION" == true ]; then echo "Press Enter to start Zsh and Tmux."