Created
June 12, 2015 17:25
-
-
Save bashilbers/c3a2a6a4cb8db12a7c84 to your computer and use it in GitHub Desktop.
remove-svn-folders
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
#!/bin/sh | |
echo -e "\e[31m" | |
echo "recursively removing the following .svn folders from" | |
pwd | |
echo -e "\e[39m" | |
find . -type d -name .svn | |
echo -e "\e[31m" | |
read -p "Continue (y/n)?" choice | |
echo -e "\e[39m" | |
case "$choice" in | |
y|Y ) rm -rf `find . -type d -name .svn`;; | |
n|N ) echo "no action taken";; | |
* ) echo "invalid";; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment