Skip to content

Commit

Permalink
Non-interactive option
Browse files Browse the repository at this point in the history
  • Loading branch information
rbamos committed Jul 12, 2024
1 parent 383dfa4 commit 2884bf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,17 @@ else [[ "$kernel_name" == "Linux" ]]
fi
curl -fsSL https://deb.nodesource.com/setup_22.x -o ~/Downloads/nodesource_setup.sh
sudo bash ~/Downloads/nodesource_setup.sh
sudo apt install -y nodejs
sudo apt install -y npm
sudo npm install -g @noovolari/leapp-cli
# brew install Noovolari/brew/leapp-cli
fi

# If NON_INTERACTIVE = 1, exit the script
if [[ "${NON_INTERACTIVE}" -eq 1 ]]; then
exit
fi

# Check if the user wants to continue
while true; do
read -p "Leapp has been installed. This script will now configure Leapp. Do you wish to continue? [Yes / No] " yn
Expand Down

0 comments on commit 2884bf9

Please sign in to comment.