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"