Skip to content

Commit 77aa42d

Browse files
authored
Merge pull request #59 from mdrocan/support_for_different_hws
Support for different hws
2 parents 2ddd017 + 7289341 commit 77aa42d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Lint Code Base
25-
uses: oxsecurity/megalinter/flavors/ci_light@v7.3.0
25+
uses: oxsecurity/megalinter/flavors/ci_light@beta
2626
env:
2727
VALIDATE_ALL_CODEBASE: true
2828
DEFAULT_BRANCH: master

brew_check.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
scriptname=$0
44

5+
hw=$(uname -m)
6+
if [ "$hw" = x86_64 ]; then
7+
brew=$(find "/usr/local/bin/" -iname brew)
8+
elif [ "$hw" = arm64 ]; then
9+
brew=$(find "/opt/homebrew/bin/" -iname brew)
10+
else
11+
exit 1
12+
fi
13+
14+
echo "brew installation location: $brew"
15+
516
brew_exist() {
617
type brew >/dev/null 2>&1 || {
718
echo >&2 "Homebrew needed to utilize this program. Installation instruction: https://brew.sh/ "

0 commit comments

Comments
 (0)