Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ make_out_file_path() {

# Replace environment variables
replace_os_vars() {
TEMP_OUT=$(mktemp "$2".XXXXXX)
awk '{
while(match($0,"[$]{[^}]*}")) {
var=substr($0,RSTART+2,RLENGTH -3)
Expand All @@ -460,7 +461,8 @@ replace_os_vars() {
gsub("[$]{"var"}",e)
}
}
}1' < "$1" > "$2"
}1' < "$1" >> "$TEMP_OUT"
mv "$TEMP_OUT" "$2"
}

add_path() {
Expand Down