feat: Removed coreutils (realpath) from dependencies for MacOS (#368)

This commit is contained in:
Maksym Vlasov 2022-04-18 19:17:15 +03:00 committed by GitHub
commit 944a2e5fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 15 additions and 17 deletions

View file

@ -6,7 +6,7 @@ set -eo pipefail
# shellcheck disable=SC2034 # Unused var.
readonly HOOK_ID='terraform_docs'
# shellcheck disable=SC2155 # No way to assign to readonly variable in separate lines
readonly SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
# shellcheck source=_common.sh
. "$SCRIPT_DIR/_common.sh"