File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -415,10 +415,22 @@ sudo make install
415415CHIRP() {
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
You can’t perform that action at this time.
0 commit comments