From 97c4b29f11edd9381ab184ba2ac57725060baf78 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 16 Jan 2012 04:51:01 -0500 Subject: [PATCH] checking to make sure it's operating in a svn directory now. --- scripts/rev_control/svn_rm_dupes.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1