mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
556618eb07
when /rc/bin/sysupdate gets updated itself during a sysupdate, rc gets confused when continuing reading the original file, but it gets data from the updated file causing confusion. the -b flag forces rc to read the original file as a whole before starting execution preventing this issue. updating this should be fine as the file has been shrunk from 230 bytes to 224 bytes.
9 lines
224 B
Bash
Executable file
9 lines
224 B
Bash
Executable file
#!/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
|