Skip to content

Commit

Permalink
Fix for install confirm function
Browse files Browse the repository at this point in the history
  • Loading branch information
sfaber34 committed Jun 11, 2024
1 parent b80edb4 commit 0a017e0
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/nextjs/public/runBuidlGuidlClient.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,19 @@ if [ "$os_name" = "Linux" ]; then
echo -e "\n✅ Node is installed. Version:"
node -v
else
if confirm "\n❓ Node is not installed. Do you want to install it?"; then
echo -e "\n💪 Installing Node.js"
cd ~
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
read -r -p "❓ Node is not installed. Do you want to install it? [y/N] " -n 1
if [[ "$REPLY" =~ ^[Yy]$ ]]; then
echo -e "\n💪 Installing Node"
cd ~
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
else
echo -e "\n👎 Node installation canceled."
fi
fi

exit

if command -v npm >/dev/null 2>&1; then
echo -e "\n✅ NPM is installed. Version:"
npm -v
Expand Down Expand Up @@ -192,9 +195,10 @@ if [ "$os_name" = "Darwin" ]; then
if command -v gpg >/dev/null 2>&1; then
echo -e "\n✅ gnupg is installed."
else
if confirm "\n❓ gnupg is not installed. Do you want to install it?"; then
echo -e "\n💪 Installing gnupg:"
brew install gnupg
read -r -p "❓ gnupg is not installed. Do you want to install it? [y/N] " -n 1
if [[ "$REPLY" =~ ^[Yy]$ ]]; then
echo -e "\n💪 Installing gnupg:"
brew install gnupg
else
echo -e "\n👎 gnupg installation canceled."
fi
Expand Down

0 comments on commit 0a017e0

Please sign in to comment.