Fix for shebang

This commit is contained in:
Bruce Hill 2019-03-27 14:37:25 -07:00
parent 6ba2b8b36d
commit 091ca13e8f

View File

@ -127,6 +127,8 @@ external:
$tree = (SyntaxTree {: for ($k = $v) in $tree: add $k = $v})
$tree.version = $end_version
if $tree.shebang:
unless ($end_version is "Text"):
$end_version = ($end_version, joined with ".")
$tree.shebang = "#!/usr/bin/env nomsu -V\$end_version\n"
return $tree