Skip to content

Commit

Permalink
fix(sh) If no optional arguments, don't fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed Jul 24, 2023
1 parent 51766e8 commit 8a52235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/compiler/languages/sh.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function M.action(selected_option)
entry_point = utils.osPath(variables.entry_point)
parameters = variables.parameters or "" -- optional
task = { "shell", name = "- Run program → " .. entry_point,
cmd = parameters .. " " .. entry_point .. -- run
cmd = parameters .. parameters == "" or " " .. entry_point .. -- run
" && echo " .. entry_point .. -- echo
" && echo '" .. final_message .. "'" -- echo
}
Expand Down

0 comments on commit 8a52235

Please sign in to comment.