File: 99push

package info (click to toggle)
etckeeper 1.15
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 412 kB
  • ctags: 41
  • sloc: sh: 1,072; python: 64; makefile: 58
file content (14 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if [ -n "$PUSH_REMOTE" ]; then
	if [ "$VCS" = git ] && [ -d .git ]; then
		for REMOTE in $PUSH_REMOTE; do
			git push "$REMOTE" master || true
		done
	elif [ "$VCS" = hg ] && [ -d .hg ]; then
		for REMOTE in $PUSH_REMOTE; do
			hg push "$REMOTE" || true
		done
	else
		echo "PUSH_REMOTE not yet supported for $VCS" >&2
	fi
fi