added directory parameter.
[feisty_meow.git] / scripts / rev_control / report_new_files.sh
index 6f2e2ecc817bdf7cc2d187d66baa98d02cafc6b1..3fa08025e570b0b26c54ed1a5b433e71f94780ec 100644 (file)
@@ -1,10 +1,16 @@
 #!/bin/bash
 
-
-
 # a simple script for updating a set of folders on a usb stick from subversion or git.  currently
 # just runs with no parameters and expects to get all archives from wherever the files originally
 # came from.
+
+dir="$1"; shift
+if [ -z "$dir" ]; then
+  dir=.
+fi
+
+pushd "$dir"
+
 for i in * ; do
   if [ -d "$i" ]; then
     pushd $i
@@ -15,3 +21,5 @@ for i in * ; do
     popd
   fi
 done
+
+popd