aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorLuke Bakken <[email protected]>2014-12-25 09:31:12 -0800
committerLuke Bakken <[email protected]>2014-12-25 09:31:12 -0800
commit64c3f5932b22daec8588728216fd0752273d4dca (patch)
treeaf40991b61520cd09f72d726d2513b23891e5060 /priv
parent7ccc695a3e38440f7e428973c986dbe6e50356fb (diff)
downloadrelx-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')
-rw-r--r--priv/templates/extended_bin.dtl6
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
}