diff options
-rwxr-xr-x | scripts/pre-commit.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index 2ea61c9..afcd09c 100755 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -2,7 +2,7 @@ set -e -uuid() { +_uuid() { if which uuid >/dev/null 2>&1 ; then uuid else @@ -25,10 +25,10 @@ do # Generate unique key if missing if ! grep -q ^key: "$i" then - key=$(uuid) + key=$(_uuid) while grep -qrw "$key" . do - key=$(uuid) + key=$(_uuid) done echo "Generated key $key for $i" sed -i "/^team:/akey: $key" "$i" |