summaryrefslogtreecommitdiff
path: root/rc/bin/sysupdate
blob: e4e79a7abf07e001798a8944a4f62fc51505fa89 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/rc -b
rfork en
cd /
if(! test -d .git)
	bind -ac /dist/plan9front /
if(! ~ `{git/branch} heads/front)
	>[1=2] echo sysupdate: must be on "front" to pull
if not
	git/pull -u gits://git.9front.org/plan9front/plan9front