Skip to content

Commit

Permalink
[chore] fix bootstrap clean for people who are too nice (#7813)
Browse files Browse the repository at this point in the history
I was doing `boostrap.sh clean` and typing `yes`, and the process exited
cleanly without me realizing nothing had happened.
  • Loading branch information
nventuro authored Aug 7, 2024
1 parent d3c8237 commit ef30c8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ if [ "$CMD" = "clean" ]; then
echo "WARNING: This will erase *all* untracked files, including hooks and submodules."
echo -n "Continue? [y/n] "
read user_input
if [ "$user_input" != "y" ] && [ "$user_input" != "Y" ]; then
if [ "$user_input" != "y" ] && [ "$user_input" != "yes" ] && [ "$user_input" != "Y" ] && [ "$user_input" != "YES" ]; then
echo "Exiting without cleaning"
exit 1
fi

Expand All @@ -117,6 +118,7 @@ if [ "$CMD" = "clean" ]; then
# Remove all untracked files, directories, nested repos, and .gitignore files.
git clean -ffdx

echo "Cleaning complete"
exit 0
elif [ "$CMD" = "full" ]; then
if can_use_ci_cache; then
Expand Down

0 comments on commit ef30c8f

Please sign in to comment.