diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-12-17 04:17:22 +0000 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-12-17 04:17:22 +0000 |
commit | 7eca34a4706e62a5cb6a64caa7114bc6c22b7103 (patch) | |
tree | 38863e31e009fc8a1ec434507f77391ed080cbf2 /scripts/git-pull | |
parent | 0a8630edcccd1e6aecf612227ec55916d88ac869 (diff) | |
download | resdb-7eca34a4706e62a5cb6a64caa7114bc6c22b7103.tar.gz resdb-7eca34a4706e62a5cb6a64caa7114bc6c22b7103.zip |
added scripts/git-pull :-).
./scripts/git-pull $PEER_NAME
example:
./scripts/git-pull d3v11
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" |