checking to make sure it's operating in a svn directory now.
authorChris Koeritz <fred@gruntose.com>
Mon, 16 Jan 2012 09:51:01 +0000 (04:51 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 16 Jan 2012 09:51:01 +0000 (04:51 -0500)
scripts/rev_control/svn_rm_dupes.sh

index 294c779862e0562a1b41b8591bfa6f155c92b71b..404ad073be4aaf19e1c9cc18a7ee7b622d8530f0 100644 (file)
@@ -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