all repos — scriptura @ 672ae135eb9f9fd74692054b0c2b58cae86e41e5

a corner in $HOME for your scripts

simplify variable scope

Alan Pearce
commit

672ae135eb9f9fd74692054b0c2b58cae86e41e5

parent

14768d7ac9f8bb751b0571f63a7cd74202e2a119

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M functions/scriptura.fishfunctions/scriptura.fish
@@ -35,8 +35,8 @@ else if path is --type dir $target/$argv[$i]
set --function target $target/$argv[$i] set --function valid $i else if path is --type file $target/$argv[$i]; or set --query _flag_new - set --function script $target/$argv[$i] set --function target $target/$argv[$i] + set --function seen_script 1 set --function valid $i if not set --query _flag_new break
@@ -74,7 +74,7 @@ __scriptura_cat $target
return $status end - if set --query script + if set --query --function seen_script if path is --perm exec $target $target $remaining return $status