summaryrefslogtreecommitdiff
path: root/rc/bin/sysupdate
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-05-26 21:50:10 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-05-26 21:50:10 +0200
commit845db4c37263c473bde38b23349a33202d92d066 (patch)
tree82ee028dbc3c1f2ff65f5f7a6db9b6ed931f9956 /rc/bin/sysupdate
parent812e0fd0583f3306a8c170e7f59f7b12f5280e4e (diff)
downloadplan9front-845db4c37263c473bde38b23349a33202d92d066.tar.xz
fix more enviroment pollution
Diffstat (limited to 'rc/bin/sysupdate')
-rwxr-xr-xrc/bin/sysupdate28
1 files changed, 10 insertions, 18 deletions
diff --git a/rc/bin/sysupdate b/rc/bin/sysupdate
index 7f95f7c10..9bb4b9193 100755
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -1,24 +1,16 @@
#!/bin/rc
-
-rfork n
-cd /
-
-incoming=1
-
-switch($1){
-case -h
- echo usage: sysupdate [-i] >[1=2]
- exit usage
-case -i
- incoming=0
-}
-
rfork n
cd /
if(! test -d .hg)
bind -ac /dist/plan9front /
-
-if(~ $incoming 1)
- hg incoming
+while(! ~ $#* 0){
+ switch($1){
+ case -i
+ hg incoming
+ case *
+ echo usage: sysupdate [-i] >[1=2]
+ exit usage
+ }
+ shift
+}
hg -v pull -u
-