Created
May 6, 2013 15:55
-
-
Save fedir/5526028 to your computer and use it in GitHub Desktop.
Removes .svn from some path #shell #svn
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/bash | |
find $1 -name .svn -exec echo {} \; | |
read -p "These files are near to be removed. Continue (y/n)?" choice | |
case "$choice" in | |
y|Y ) | |
find $1 -name .svn -exec rm -rf {} \; | |
;; | |
* ) | |
echo "No files removed" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment