mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
extra fi
This commit is contained in:
@@ -1432,19 +1432,24 @@ if [[ ${CHIRP} == ${NEWCHIRP} ]]; then
|
||||
sudo apt-get install -y flatpak ||
|
||||
{ ERRCODE="Failed to install flatpak."; errors; return; }
|
||||
fi
|
||||
|
||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo ||
|
||||
{ ERRCODE="Failed to add flathub remote."; errors; return; }
|
||||
|
||||
cd $USERDIR && wget -N https://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-daily-$NEWCHIRP.flatpak ||
|
||||
{ ERRCODE="Failed to download new version of chirp."; errors; return; }
|
||||
|
||||
sudo flatpak install chirp-daily-$NEWCHIRP.flatpak ||
|
||||
{ ERRCODE="Failed to install chirp flatpak."; errors; return; }
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
sudo apt-get install -y snapd ||
|
||||
{ ERRCODE="Failed to install Snap for Chirp installation"; errors; return; }
|
||||
|
||||
sudo snap install chirp-snap --edge ||
|
||||
{ ERRCODE="Failed to install Chirp from snap store."; errors; return; }
|
||||
|
||||
sudo snap connect chirp-snap:raw-usb ||
|
||||
{ ERRCODE="Failed to set USB permissions for Chirp-snap."; errors; return; }
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user