mirror of
https://github.com/km4ack/73Linux
synced 2026-08-13 17:51:54 -04:00
fix version checking
This commit is contained in:
parent
e624a8f55f
commit
de41498cfe
1 changed files with 2 additions and 4 deletions
|
|
@ -48,11 +48,9 @@ echo "$ID needs remove function"
|
|||
VERSION(){
|
||||
if ! hash direwolf 2>/dev/null; then
|
||||
CURRENT=0
|
||||
wget -P /tmp/ https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md >/dev/null 2>&1
|
||||
NEWVER=$(cat /tmp/CHANGES.md | head -5 | tail -1 | awk '{ print $3 }')
|
||||
NEWVER=$(curl -s https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md | grep Version | head -1 | awk '{print $3}')
|
||||
else
|
||||
CURRENT=$(direwolf -S -t 0 | head -1 | sed 's/Dire\ Wolf\ version\ //')
|
||||
wget -P /tmp/ https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md >/dev/null 2>&1
|
||||
NEWVER=$(cat /tmp/CHANGES.md | head -5 | tail -1 | awk '{ print $3 }')
|
||||
NEWVER=$(curl -s https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md | grep Version | head -1 | awk '{print $3}')
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue