mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-27 21:49:08 +08:00
Try to search for binary on macOS/Cabal3
This commit is contained in:
@@ -66,9 +66,14 @@ build_osx() {
|
|||||||
cabal update
|
cabal update
|
||||||
cabal install --dependencies-only
|
cabal install --dependencies-only
|
||||||
cabal build shellcheck
|
cabal build shellcheck
|
||||||
|
|
||||||
|
# Cabal 3 no longer has a predictable output path
|
||||||
|
path="$(find . -name 'shellcheck' -type f -perm +111)"
|
||||||
|
[[ -e "$path" ]]
|
||||||
|
|
||||||
for tag in $TAGS
|
for tag in $TAGS
|
||||||
do
|
do
|
||||||
cp "dist/build/shellcheck/shellcheck" "deploy/shellcheck-$tag.darwin-x86_64";
|
cp "$path" "deploy/shellcheck-$tag.darwin-x86_64";
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user