Created
January 18, 2019 11:38
-
-
Save piotrkubisa/f64d19d5f3871e7087f925e5e872e46f to your computer and use it in GitHub Desktop.
A prompt check in the Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clean: | |
git clean -ndX | |
bash -c "read -r -p \"Are you sure? [y/N]\" response; [[ \$$response =~ [yY] ]] && git clean -dXi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment