code: plan9front

ref: a14f9efa6848f167f54dea3e3823b31dae1461c9
dir: /rc/bin/sysupdate/

View raw version
#!/bin/rc

rfork en

cd /
if(! test -d .git)
	bind -ac /dist/plan9front /
if(! ~ `{git/branch} heads/front)
	>[1=2] echo sysupdate: must be on "front" branch to pull
if not
	git/pull -u gits://git.9front.org/plan9front/plan9front