diff options
author | Luke Bakken <[email protected]> | 2014-12-25 09:31:12 -0800 |
---|---|---|
committer | Luke Bakken <[email protected]> | 2014-12-25 09:31:12 -0800 |
commit | 64c3f5932b22daec8588728216fd0752273d4dca (patch) | |
tree | af40991b61520cd09f72d726d2513b23891e5060 /priv/templates/extended_bin.dtl | |
parent | 7ccc695a3e38440f7e428973c986dbe6e50356fb (diff) | |
download | relx-64c3f5932b22daec8588728216fd0752273d4dca.tar.gz relx-64c3f5932b22daec8588728216fd0752273d4dca.tar.bz2 relx-64c3f5932b22daec8588728216fd0752273d4dca.zip |
No need to output -1 since error codes are straightened out.
Diffstat (limited to 'priv/templates/extended_bin.dtl')
-rw-r--r-- | priv/templates/extended_bin.dtl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index a773275..70b4ee2 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -28,12 +28,12 @@ find_erts_dir() { # Get node pid relx_get_pid() { - if pid="$(relx_nodetool rpcterms os getpid)" + if output="$(relx_nodetool rpcterms os getpid)" then - echo "$pid" | sed -e 's/"//g' + echo "$output" | sed -e 's/"//g' return 0 else - echo '-1' + echo "$output" return 1 fi } |