aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpriv/templates/extended_bin20
1 files changed, 10 insertions, 10 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index 3d876f0..ac9f0a5 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -296,19 +296,19 @@ ERTS_LIB_DIR="$(dirname "$ERTS_DIR")/lib"
VMARGS_PATH=$(add_path vm.args $VMARGS_PATH)
# Extract the target node name from vm.args or referenced args_files
NAME_ARG=$(awk 'function find_name(file) {
- while ((getline line<file)>0) {
- if (line~/^-args_file +/) {
- gsub(/^-args_file +/, "", line)
- find_name(line)
- }
- else if (line~/^-s?name +/) {
- print line
- exit
- }
+ while ((getline line<file)>0) {
+ if (line~/^-args_file +/) {
+ gsub(/^-args_file +/, "", line)
+ find_name(line)
}
+ else if (line~/^-s?name +/) {
+ print line
+ exit
+ }
+ }
}
{
- find_name(FILENAME)
+ find_name(FILENAME)
}' "$VMARGS_PATH")
# Perform replacement of variables in ${NAME_ARG}
NAME_ARG=$(eval echo "${NAME_ARG}")