mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Merge pull request #2448 from docker-mailserver/macos-linting-support
macos support: lint.sh doesn't find proper bash under /usr/local/bin + acme_extract (python) is trying to be shellchecked
This commit is contained in:
commit
1eca829cc1
|
@ -1,4 +1,4 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env bash
|
||||
|
||||
# version v0.2.0 unstable
|
||||
# executed by Make during CI or manually
|
||||
|
@ -105,7 +105,7 @@ function _shellcheck
|
|||
-not -path './target/docker-configomat/*'
|
||||
)"
|
||||
# macOS lacks parity for `-executable` but presently produces the same results: https://stackoverflow.com/a/4458361
|
||||
[[ "$(uname)" == "Darwin" ]] && FIND_EXEC="-perm +111 -type l -or" || FIND_EXEC="-executable"
|
||||
[[ "$(uname)" == "Darwin" ]] && FIND_EXEC="-perm -711" || FIND_EXEC="-executable"
|
||||
# shellcheck disable=SC2248
|
||||
F_BIN="$(find 'target/bin' ${FIND_EXEC} -type f)"
|
||||
F_BATS="$(find 'test' -maxdepth 1 -type f -iname '*.bats')"
|
||||
|
|
Loading…
Reference in a new issue