From: Chris Koeritz Date: Mon, 16 Jan 2012 09:51:01 +0000 (-0500) Subject: checking to make sure it's operating in a svn directory now. X-Git-Tag: 2.140.90~1661 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=97c4b29f11edd9381ab184ba2ac57725060baf78;p=feisty_meow.git checking to make sure it's operating in a svn directory now. --- diff --git a/scripts/rev_control/svn_rm_dupes.sh b/scripts/rev_control/svn_rm_dupes.sh index 294c7798..404ad073 100644 --- a/scripts/rev_control/svn_rm_dupes.sh +++ b/scripts/rev_control/svn_rm_dupes.sh @@ -54,6 +54,11 @@ if [ "$current_dir" == "$the_good_place" ]; then exit 4 fi +if [ ! -d ".svn" ]; then + echo "Could not find a subversion directory; operation would be pointless." + exit 1 +fi + # do the real work now... for i in *; do if [ -f "$exemplar_dir/$i" ]; then