diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-27 14:37:25 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-27 14:37:25 -0700 |
| commit | 091ca13e8fabbc64aa7015c4eb44a9091e4c399f (patch) | |
| tree | 2ee1218bc1649cbbb18981570bd4af9f95110969 | |
| parent | 6ba2b8b36d4d8a082875c0d28a232b164fdc9638 (diff) | |
Fix for shebang
| -rw-r--r-- | lib/compatibility/compatibility.nom | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compatibility/compatibility.nom b/lib/compatibility/compatibility.nom index 01ba24f..4cc5d74 100644 --- a/lib/compatibility/compatibility.nom +++ b/lib/compatibility/compatibility.nom @@ -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 |
