X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Freport_new_files.sh;h=3fa08025e570b0b26c54ed1a5b433e71f94780ec;hb=f1391991b594a5dda9b5e7950588fa051b9398fa;hp=6f2e2ecc817bdf7cc2d187d66baa98d02cafc6b1;hpb=efbd874f9287fe8b4d6062e8fc698f051b5c1e1f;p=feisty_meow.git diff --git a/scripts/rev_control/report_new_files.sh b/scripts/rev_control/report_new_files.sh index 6f2e2ecc..3fa08025 100644 --- a/scripts/rev_control/report_new_files.sh +++ b/scripts/rev_control/report_new_files.sh @@ -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