From 64c3f5932b22daec8588728216fd0752273d4dca Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Thu, 25 Dec 2014 09:31:12 -0800 Subject: No need to output -1 since error codes are straightened out. --- priv/templates/extended_bin.dtl | 6 +++--- 1 file 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 } -- cgit v1.2.3