From 0f4b6c1d54217700b0d336ceac0bee4939af61eb Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Sat, 9 Mar 2024 18:38:23 -0300 Subject: [PATCH] fixup! chore: add test job at CI --- .github/workflows/health-check.yml | 2 ++ uninstall.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index a5abae9..1812946 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -65,3 +65,5 @@ jobs: - name: Run uninstall script run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/uninstall.sh)" + env: + CI: true diff --git a/uninstall.sh b/uninstall.sh index 93dc2ef..70a1b8f 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -12,9 +12,13 @@ function step_msg { } echo "This script will remove all configurations of the environment." -read -p "Are you sure you want to proceed? (y/n) " CONFIRM -if [[ $CONFIRM == [yY] || $CONFIRM == [yY][eE][sS] ]] +if [ ! $CI ] +then + read -p "Are you sure you want to proceed? (y/n) " CONFIRM +fi + +if [[ $CI|| $CONFIRM == [yY] || $CONFIRM == [yY][eE][sS] ]] then printf "\nPlease wait! Proceeding with the removal of all configurations...\n"