From 7fe332f29c8568f78abbc3e686573730a42bdbcd Mon Sep 17 00:00:00 2001 From: mrnoname1000 Date: Thu, 19 Oct 2023 23:35:44 +0000 Subject: [PATCH] README.md: Fix sh UUID generator And make call to head POSIX-compliant --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f6934ba..47dbe3a 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ You need to populate some of your plugin's information. Go ahead a put in a stri - **Linux and OS X Users**: you can use the Powershell Core command `New-Guid` or this command from your shell of choice: ```bash - od -x /dev/urandom | head -1 | awk '{OFS="-"; srand($6); sub(/./,"4",$5); sub(/./,substr("89ab",rand()*4,1),$6); print $2$3,$4,$5,$6,$7$8$9}' + od -x /dev/urandom | head -n1 | awk '{OFS="-"; srand($6); sub(/./,"4",$5); sub(/./,substr("89ab",1+rand()*4,1),$6); print $2$3,$4,$5,$6,$7$8$9}' ``` or