From b1000fce7da998841c0ba67eaf8bd011eeaa4a6c Mon Sep 17 00:00:00 2001 From: Andrew Hobson Date: Wed, 14 Apr 2021 15:54:41 +0000 Subject: [PATCH] Include comment on locking pattern for hadolint --- pre-commit-hadolint | 1 + 1 file changed, 1 insertion(+) diff --git a/pre-commit-hadolint b/pre-commit-hadolint index 402f06f..18baa34 100755 --- a/pre-commit-hadolint +++ b/pre-commit-hadolint @@ -24,6 +24,7 @@ function mylock() { } # Download the binary if it doesn't already exist +# use the locking pattern from https://linux.die.net/man/1/flock ( mylock if [[ ! -x ${LOCAL_BINARY} ]]; then