Skip to content

Commit

Permalink
Update runner.elv
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneish authored Jul 6, 2024
1 parent 9bef3ce commit 08b4087
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions runners/scripts/runner.elv
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
use str

fn __FUNCTION_ALIAS__ { |@a|
use str
var sep = __CMD_SEPARATOR__
var bhop_cmd = (echo __HOPPERCMD__ | $@a)
var bhop_cmd = (echo __HOPPERCMD__ $@a)
var out = (__SHELL_CALLABLE__ -c $bhop_cmd)
if (not (str:contains $out $sep)) {
echo $out
}
var arr = [(str:split $out $sep)]
var arr = [(str:split $sep $out)]
cd $arr[0]
__SHELL_CALLABLE__ -c $arr[1]
}

edit:add-var __FUNCTION_ALIAS__~ $__FUNCTION_ALIAS__~

0 comments on commit 08b4087

Please sign in to comment.