Skip to content

Commit 900125e

Browse files
tecosaurKristofferC
authored andcommitted
Switch to more portable shell shebang (#4162)
Co-authored-by: Kristoffer Carlsson <[email protected]> (cherry picked from commit 175a1ff)
1 parent 7e7d6d1 commit 900125e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Apps/Apps.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function generate_shim(pkgname, app::AppInfo, env, julia)
468468
else
469469
julia_escaped = Base.shell_escape(julia)
470470
module_spec_escaped = Base.shell_escape(module_spec)
471-
bash_shim(julia_escaped, module_spec_escaped, env)
471+
shell_shim(julia_escaped, module_spec_escaped, env)
472472
end
473473
overwrite_file_if_different(julia_bin_filename, content)
474474
if Sys.isunix()
@@ -477,9 +477,9 @@ function generate_shim(pkgname, app::AppInfo, env, julia)
477477
end
478478

479479

480-
function bash_shim(julia_escaped::String, module_spec_escaped::String, env)
480+
function shell_shim(julia_escaped::String, module_spec_escaped::String, env)
481481
return """
482-
#!/usr/bin/env bash
482+
#!/bin/sh
483483
484484
$SHIM_HEADER
485485

0 commit comments

Comments
 (0)