comparison scripts/git-pull @ 1193:2f57d4d36759 draft

add muh nameserver, some script tweaks
author cathugger <cathugger@cock.li>
date Fri, 10 Mar 2017 03:30:16 +0000
parents 88c2bd1a286a
children
comparison
equal deleted inserted replaced
1192:a0de6dd1652e 1193:2f57d4d36759
1 #!/bin/bash 1 #!/bin/sh
2 if [ -z "$1" ]; then 2 if [ -z "$1" ]; then
3 echo './scripts/git-pull $PEER_NAME' 3 echo "Usage: $0 \$PEER_NAME" >&2
4 exit 1 4 exit 1
5 fi 5 fi
6 [ -e db/usr/"$1"/git ] && git pull `cat db/usr/"$1"/git` master 6 [ -e db/usr/"$1"/git ] && git pull `cat db/usr/"$1"/git` master || echo "$0: record does not exist for $1" >&2
7 [ -e db/usr/"$1"/git ] || echo "./git-pull: record does not exist for $1"