mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-10-18 21:35:11 +08:00
Update 'data/dns/ripnet.dn42'
This commit is contained in:
parent
f50aa580fa
commit
2605a12260
6862 changed files with 0 additions and 52457 deletions
23
check-remote
23
check-remote
|
@ -1,23 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
if [ $# -lt 3 ]
|
||||
then
|
||||
echo "Usage: $0 GIT-USER GIT-BRANCH USER-MNT"
|
||||
exit
|
||||
fi
|
||||
|
||||
clean_up() {
|
||||
git merge --abort > /dev/null
|
||||
}
|
||||
|
||||
(git merge HEAD || clean_up) > /dev/null
|
||||
git pull --ff-only > /dev/null
|
||||
if ! git config "remote.$1.url" > /dev/null; then
|
||||
git remote add "$1" "git@git.dn42:$1/registry.git"
|
||||
fi
|
||||
git fetch "$1" 2> /dev/null
|
||||
git merge --no-ff --no-commit "$1/$2" 2> /dev/null
|
||||
./check-pol HEAD "$3" || (echo "Policy Check FAILED"; clean_up; exit 1)
|
||||
./check-my-stuff "$3" || (echo "Schema Check FAILED"; clean_up; exit 1)
|
||||
echo OK
|
||||
clean_up
|
Loading…
Add table
Add a link
Reference in a new issue