aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpriv/templates/extended_bin3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index 1b619d4..87128b7 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -229,7 +229,8 @@ replace_os_vars() {
awk '{
while(match($0,"[$]{[^}]*}")) {
var=substr($0,RSTART+2,RLENGTH -3)
- gsub("[$]{"var"}",ENVIRON[var])
+ if (ENVIRON[var]) gsub("[$]{"var"}",ENVIRON[var]);
+ else next
}
}1' < "$1" > "$2"
}