diff options
Diffstat (limited to 'scripts/git-pull')
-rwxr-xr-x | scripts/git-pull | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/git-pull b/scripts/git-pull new file mode 100755 index 0000000..260c33b --- /dev/null +++ b/scripts/git-pull @@ -0,0 +1,7 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo './scripts/git-pull $PEER_NAME' + exit 1 +fi +[ -e db/usr/"$1"/git ] && git pull `cat db/usr/"$1"/git` master +[ -e db/usr/"$1"/git ] || echo "./git-pull: record does not exist for $1" |