chore(scripts): Removing flock so NFS works (#1980)

Co-authored-by: Casper <casperklein@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Nathan Pierce 2021-06-15 08:03:41 -04:00 committed by GitHub
parent ba32943986
commit 5becce8064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 302 additions and 273 deletions

View file

@ -6,7 +6,13 @@
SCRIPT="lint.sh"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [[ "$(uname)" == "Darwin" ]]
then
readlink() {
greadlink "${@:+$@}" # Requires coreutils
}
fi
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
REPO_ROOT="$(realpath "${SCRIPT_DIR}"/../../)"
HADOLINT_VERSION=2.4.1
@ -51,7 +57,7 @@ function __log_success
function __in_path
{
command -v "${@}" &>/dev/null && return 0 ; return 1 ;
command -v "${@:+$@}" &>/dev/null && return 0 ; return 1 ;
}
function _eclint
@ -142,4 +148,4 @@ function __main
esac
}
__main "${@}" || exit ${?}
__main "${@:+$@}" || exit ${?}