Skip to content

Commit

Permalink
Merge pull request #627 from erlware/revert-586-feature/replace-defin…
Browse files Browse the repository at this point in the history
…ed-os-vars

Revert "Only print lines for os var that are set"
  • Loading branch information
lrascao authored Nov 21, 2017
2 parents c76c089 + ea51894 commit 6384713
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ replace_os_vars() {
awk '{
while(match($0,"[$]{[^}]*}")) {
var=substr($0,RSTART+2,RLENGTH -3)
if (ENVIRON[var]) gsub("[$]{"var"}",ENVIRON[var]);
else next
gsub("[$]{"var"}",ENVIRON[var])
}
}1' < "$1" > "$2"
}
Expand Down

0 comments on commit 6384713

Please sign in to comment.