X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fupdate_these.sh;h=fb0f4495b756692a5c0c6bbd5497dba5731338bd;hb=29746c292d1930d85aeca1fb89f6d9e317303c0e;hp=bd7b1c1f18563d29fffbceaac3bbe8ce52344186;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/rev_control/update_these.sh b/scripts/rev_control/update_these.sh index bd7b1c1f..fb0f4495 100644 --- a/scripts/rev_control/update_these.sh +++ b/scripts/rev_control/update_these.sh @@ -1,13 +1,15 @@ #!/bin/bash -# a simple script for updating a set of folders on a usb stick from -# subversion. currently just runs with no parameters and expects to -# get all archives from wherever the files originally came from. +# 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. for i in * ; do if [ -d "$i" ]; then pushd $i + # only update if we see a repository living there. if [ -d ".svn" ]; then - # only update if we see a repository living here. svn update . + elif [ -d ".git" ]; then + git pull fi popd fi