aboutsummaryrefslogtreecommitdiff
path: root/auto-void-packages/update-git-repo.sh
blob: 9533bc9ab47ec4399963e8242ca0abaeeb2a1898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

echo_n_notify(){
	echo "$1" && notify-send "$1"
}

pushd "$HOME/workbench/void-packages" || exit 1

git checkout master && \
	echo_n_notify "checkout: ok" && \
	git fetch upstream && \
	echo_n_notify "fetch: ok" && \
	git merge upstream/master && \
	echo_n_notify "merge: ok" && \
	git push && \
	echo_n_notify "push: ok"

./xbps-src bootstrap-update

popd || exit 1