Skip to content

Commit 038dc8c

Browse files
committed
fix armv7 assets and zips
1 parent a022e3b commit 038dc8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

install.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ install_standalone() {
367367
fi
368368

369369
"$sh_c" mkdir -p "$STANDALONE_INSTALL_PREFIX/bin"
370-
if [ "$STANDALONE_ARCHIVE_FORMAT" == tar.gz ]; then
370+
if [ "$STANDALONE_ARCHIVE_FORMAT" = tar.gz ]; then
371371
"$sh_c" tar -C "$CACHE_DIR" -xzf "$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.tar.gz"
372372
else
373373
"$sh_c" unzip -d "$CACHE_DIR" -o "$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.zip"
@@ -383,8 +383,8 @@ install_standalone() {
383383
has_standalone() {
384384
case $ARCH in
385385
amd64) return 0 ;;
386-
# We only have amd64 for macOS.
387-
arm64)
386+
ard64) return 0 ;;
387+
armv7)
388388
[ "$(distro)" != darwin ]
389389
return
390390
;;
@@ -463,6 +463,7 @@ arch() {
463463
case $uname_m in
464464
aarch64) echo arm64 ;;
465465
x86_64) echo amd64 ;;
466+
armv7l) echo armv7 ;;
466467
*) echo "$uname_m" ;;
467468
esac
468469
}

0 commit comments

Comments
 (0)