Skip to content

Commit 8a52235

Browse files
committed
fix(sh) If no optional arguments, don't fail.
1 parent 51766e8 commit 8a52235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/compiler/languages/sh.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function M.action(selected_option)
4545
entry_point = utils.osPath(variables.entry_point)
4646
parameters = variables.parameters or "" -- optional
4747
task = { "shell", name = "- Run program → " .. entry_point,
48-
cmd = parameters .. " " .. entry_point .. -- run
48+
cmd = parameters .. parameters == "" or " " .. entry_point .. -- run
4949
" && echo " .. entry_point .. -- echo
5050
" && echo '" .. final_message .. "'" -- echo
5151
}

0 commit comments

Comments
 (0)