diff options
author | Jay Doane <[email protected]> | 2015-04-04 11:40:03 -0700 |
---|---|---|
committer | Jay Doane <[email protected]> | 2015-04-04 11:40:03 -0700 |
commit | 9cd4c150979d03177b5262a7da31801f0d22f877 (patch) | |
tree | 3cc62dddb7f65fad42e932f9656a5556eafc9ee2 /priv/templates | |
parent | 06311df28d24264c81df780a30303eb1f47d288a (diff) | |
download | relx-9cd4c150979d03177b5262a7da31801f0d22f877.tar.gz relx-9cd4c150979d03177b5262a7da31801f0d22f877.tar.bz2 relx-9cd4c150979d03177b5262a7da31801f0d22f877.zip |
Replace "cut -d ' ' -f2" with "awk '{print $2}'" so it will work on a mac, where od -X /dev/urandom returns columns separated by more than one space
Diffstat (limited to 'priv/templates')
-rwxr-xr-x | priv/templates/extended_bin.dtl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index 4284772..452669c 100755 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -60,7 +60,7 @@ relx_rem_sh() { # Generate a random id relx_gen_id() { - od -X /dev/urandom | head -n1 | cut -d ' ' -f2 + od -X /dev/urandom | head -n1 | awk '{print $2}' } # Control a node |