From fdef19fd0308ca8d36803c6b9e7abc1eddbe23b7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 16 Jan 2022 15:17:24 -0300 Subject: {aux,tests}/lib.sh: Use -n1 instead of -1 for head command --- aux/lib.sh | 2 +- tests/lib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aux/lib.sh b/aux/lib.sh index d64409a..b47812d 100755 --- a/aux/lib.sh +++ b/aux/lib.sh @@ -8,7 +8,7 @@ uuid() { # Taken from: # https://serverfault.com/a/799198 od -xN20 /dev/urandom | - head -1 | + head -n1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' } diff --git a/tests/lib.sh b/tests/lib.sh index 527e645..f2d5555 100755 --- a/tests/lib.sh +++ b/tests/lib.sh @@ -122,7 +122,7 @@ uuid() { # Taken from: # https://serverfault.com/a/799198 od -xN20 /dev/urandom | - head -1 | + head -n1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' } -- cgit v1.2.3