shithub: riscv

ref: 0e96985e12d03ea0dcc9a82a5e4f307b80aca93d
dir: /rc/bin/sysupdate/

View raw version
#!/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