diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-26 20:17:56 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-26 20:17:56 +0200 |
commit | 0d378e905e4df6266d9fc9243e7ed735e12d839b (patch) | |
tree | 588fa45dabe85b0f58f9993928db9bb1812434d6 /rc/bin/inst/main | |
parent | 744dbd6bb8532d6add6b00a16a794fd037caadbf (diff) | |
download | plan9front-0d378e905e4df6266d9fc9243e7ed735e12d839b.tar.xz |
inst: cleanup installer making it not rely on path containing .
always explicitely execute installer modules with ./name instead
of relying that the path contians the dot.
Diffstat (limited to 'rc/bin/inst/main')
-rwxr-xr-x | rc/bin/inst/main | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/bin/inst/main b/rc/bin/inst/main index bee680ebf..4a3eb8bf8 100755 --- a/rc/bin/inst/main +++ b/rc/bin/inst/main @@ -1,6 +1,6 @@ #!/bin/rc -. defs +. ./defs while() { @@ -57,7 +57,7 @@ for(i in $tasks) { $i=notdone if(~ $$i done) { export $i - $i checkdone + ./$i checkdone $i=`{grep '^'$i^'=' /tmp/vars | sed -n '$p' | sed 's/.*=//'} } @@ -70,7 +70,7 @@ for(i in $tasks) { case yes $i=ready export $i - $i checkready + ./$i checkready $i=`{grep '^'$i^'=' /tmp/vars | sed -n '$p' | sed 's/.*=//'} case no $i=notdone @@ -108,7 +108,7 @@ prompt -d $ready(1) -w '' 'Task to do' $done $ready echo echo $div -$rd go +./$rd go $rd=done # if it's not, the check will figure that out export $rd } |