Skip to content

Commit

Permalink
fixup! chore: add test job at CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 9, 2024
1 parent 7af379d commit 0f4b6c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 0f4b6c1

Please sign in to comment.