From 9cd4c150979d03177b5262a7da31801f0d22f877 Mon Sep 17 00:00:00 2001 From: Jay Doane Date: Sat, 4 Apr 2015 11:40:03 -0700 Subject: 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 --- priv/templates/extended_bin.dtl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'priv') 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 -- cgit v1.2.3