Skip to content

Commit e27cf4f

Browse files
authored
Merge pull request km4ack#452 from SpudGunMan/chirp-fix
chirp 64bit install fix
2 parents 3175e9d + 603cdf1 commit e27cf4f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

functions/additional.function

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,22 @@ sudo make install
415415
CHIRP() {
416416

417417
#sudo apt install -y chirp
418+
418419
cd ${DIR} || return
419420
sudo apt install libfuse2
420421
CHIRPDATE=$(curl -s https://github.com/goldstar611/chirp-appimage | grep "releases/tag/" | sed 's|.*releases/tag/||;s|">||')
422+
423+
#determine if 32/64 bit and set download link accordingly. issue #382
424+
if [ `getconf LONG_BIT` = '32' ]; then
425+
421426
LINK="https://github.com/goldstar611/chirp-appimage/releases/download/$CHIRPDATE/Chirp-daily-$CHIRPDATE-armhf.AppImage"
427+
428+
else
429+
430+
LINK="https://github.com/goldstar611/chirp-appimage/releases/download/$CHIRPDATE/Chirp-daily-$CHIRPDATE-aarch64.AppImage"
431+
432+
fi
433+
422434
wget $LINK
423435
CHIRP=$(ls | grep Chirp-daily)
424436
sudo mv $CHIRP /usr/local/bin/chirp

0 commit comments

Comments
 (0)