mirror of
https://github.com/km4ack/73Linux
synced 2026-08-13 17:51:54 -04:00
add timeout
This commit is contained in:
parent
792c9cf505
commit
b7cb342a59
1 changed files with 2 additions and 2 deletions
|
|
@ -49,10 +49,10 @@ INSTALL(){
|
|||
VERSION(){
|
||||
if ! hash rigctl 2>/dev/null; then
|
||||
CURRENT=0
|
||||
NEWVER=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download | grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] | head -n 1 | awk -F "/" '{print $7}')
|
||||
NEWVER=$(curl --max-time 20 -s https://sourceforge.net/projects/hamlib/files/latest/download | grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] | head -n 1 | awk -F "/" '{print $7}')
|
||||
else
|
||||
CURRENT=$(rigctl --version | awk '{print $3}')
|
||||
NEWVER=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download | grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] | head -n 1 | awk -F "/" '{print $7}')
|
||||
NEWVER=$(curl --max-time 20 -s https://sourceforge.net/projects/hamlib/files/latest/download | grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] | head -n 1 | awk -F "/" '{print $7}')
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue