stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit bb937f1c2b445f8278cca87af9cd60f11e735823
parent 3925b5bf57087123d1ab232e645b9bca6a987c9f
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 26 Jan 2022 15:36:09 +0000

create.rc: run in subshell & fix

Diffstat:
Mcreate.rc | 14++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/create.rc b/create.rc @@ -23,15 +23,13 @@ stagit-gopher-index -b $stagitdir $repos | tail -n +2 >> $destdir/index.gph for (repo in $repos) { display = `$nl{basename $repo '.git'} dest = $destdir ^ $display - savedir = `$nl{pwd} printf '%s... ' $display - - mkdir -p $dest - cd $dest - stagit-gopher -b $dest -l 75 $repo - ln -sf log.gph index.gph - - cd $savedir + @{ + mkdir -p $dest + cd $dest + stagit-gopher -b $stagitdir/$display -l 75 $repo + ln -sf log.gph index.gph + } printf 'done\n' }