added getvara download if needed

This commit is contained in:
tb14
2025-01-27 14:48:54 -06:00
parent f32002d286
commit 463c080fc8
+12
View File
@@ -92,6 +92,18 @@ ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
fi
if ! hash getvaralist; then
wget -P $USERDIR -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
{ ERRCODE="Failed to download getardoplist script"; errors; return; }
sed 's/ardop/vara/g' $USERDIR/getardoplist >> $USERDIR/getvaralist ||
{ ERRCODE="Failed to clone and modify getardop to gitvara"; errors; return; }
chmod +x $USERDIR/getvaralist && sudo mv $USERDIR/getvaralist /usr/local/bin/ ||
{ ERRCODE="Failed to add getvaralist to /usr/local/bin"; errors; return; }
fi
if [[ ! -f $HOME/Documents/grid-map.pdf ]]; then
#wget -O $HOME/Documents/grid-map.pdf http://www.icomamerica.com/en/amateur/amateurtools/2013_GridSquareMap.pdf
cp $HOME/setup-scripts/Files/2013_GridSquareMap.pdf $HOME/Documents/grid-map.pdf ||