From 091ca13e8fabbc64aa7015c4eb44a9091e4c399f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 27 Mar 2019 14:37:25 -0700 Subject: [PATCH] Fix for shebang --- lib/compatibility/compatibility.nom | 2 ++ 1 file changed, 2 insertions(+) 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