aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-16 15:17:24 -0300
committerEuAndreh <eu@euandre.org>2022-01-16 15:17:28 -0300
commitfdef19fd0308ca8d36803c6b9e7abc1eddbe23b7 (patch)
tree088d48e1ba31e2ccfb23cbca963c2ee50e5475ba
parentTODOs.md: Check item in #td-d6adcb7a-5252-d883-2b81-501c6f648214 (diff)
downloadgit-permalink-fdef19fd0308ca8d36803c6b9e7abc1eddbe23b7.tar.gz
git-permalink-fdef19fd0308ca8d36803c6b9e7abc1eddbe23b7.tar.xz
{aux,tests}/lib.sh: Use -n1 instead of -1 for head command
-rwxr-xr-xaux/lib.sh2
-rwxr-xr-xtests/lib.sh2
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}'
}