diff options
Diffstat (limited to 'priv/templates')
-rwxr-xr-x | priv/templates/extended_bin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index e3b8f1a..3d876f0 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -297,11 +297,11 @@ 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\s+/) { - gsub(/^-args_file\s+/, "", line) + if (line~/^-args_file +/) { + gsub(/^-args_file +/, "", line) find_name(line) } - else if (line~/^-s?name\s+/) { + else if (line~/^-s?name +/) { print line exit } |