File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
HARDWARE = $(shell uname -m)
2
2
SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]')
3
+ ARCH = $(shell dpkg --print-architecture)
3
4
SHFMT_VERSION = 3.0.2
4
5
XUNIT_TO_GITHUB_VERSION = 0.3.0
5
6
XUNIT_READER_VERSION = 0.1.0
@@ -21,7 +22,11 @@ ifneq ($(shell shellcheck --version >/dev/null 2>&1 ; echo $$?),0)
21
22
ifeq ($(SYSTEM_NAME ) ,darwin)
22
23
brew install shellcheck
23
24
else
24
- sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse'
25
+ ifeq ($(ARCH ) ,arm64)
26
+ sudo add-apt-repository 'deb http ://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse'
27
+ else
28
+ sudo add-apt-repository 'deb http ://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse'
29
+ endif
25
30
sudo rm -rf /var/lib/apt/lists/* && sudo apt-get clean
26
31
sudo apt-get update -qq && sudo apt-get install -qq -y shellcheck
27
32
endif
You can’t perform that action at this time.
0 commit comments