add hamlib check to xlog install

pull/147/head
KM4ACK 2020-08-22 17:09:33 -05:00
rodzic 1b92084bda
commit 44dfdea03a
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -512,6 +512,16 @@ rm -rf $HOME/tqsl-$CUR
################################## ##################################
XLOG(){ XLOG(){
#verify hamlib installed
if ! hash rigctld 2>/dev/null; then
cat <<EOF > $HOME/Desktop/XLOG.txt
Xlog could not be installed because hamlib
wasn't found on the system. Use the build
a pi script to install hamlib and then try
installing xlog again.
EOF
else
TARXLOG=$(curl -s https://download.savannah.nongnu.org/releases/xlog/ | \ TARXLOG=$(curl -s https://download.savannah.nongnu.org/releases/xlog/ | \
grep 2.[0-9].[0-9][0-9].tar | sort | tail -1 | sed 's/.*xlog/xlog/' | sed 's/.sig.*$//') grep 2.[0-9].[0-9][0-9].tar | sort | tail -1 | sed 's/.*xlog/xlog/' | sed 's/.sig.*$//')
@ -529,6 +539,7 @@ make
sudo make install sudo make install
cd $HOME cd $HOME
rm -rf $DIRXLOG rm -rf $DIRXLOG
fi
} }
################################## ##################################