@ -66,23 +66,23 @@ getLocalWebVersion(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
PHVERSIONLATEST=$(curl -s https://api.github.com/repos/pi-hole/pi-hole/releases/latest | \
|
PHVERSIONLATEST=$(curl -s https://api.github.com/repos/pi-hole/pi-hole/releases/latest | \
|
||||||
grep -Po '"tag_name":.*?[^\\]",' | \
|
awk -F: '$1 ~/tag_name/ { print $2 }' | \
|
||||||
perl -pe 's/"tag_name": "//; s/^"//; s/",$//')
|
tr -cd '[[:alnum:]]._-')
|
||||||
WEBVERSIONLATEST=$(curl -s https://api.github.com/repos/pi-hole/AdminLTE/releases/latest | \
|
WEBVERSIONLATEST=$(curl -s https://api.github.com/repos/pi-hole/AdminLTE/releases/latest | \
|
||||||
grep -Po '"tag_name":.*?[^\\]",' | \
|
awk -F: '$1 ~/tag_name/ { print $2 }' | \
|
||||||
perl -pe 's/"tag_name": "//; s/^"//; s/",$//')
|
|
||||||
|
|
||||||
PHHASHLATEST=$(curl -s https://api.github.com/repos/pi-hole/pi-hole/commits/master | \
|
|
||||||
grep sha | \
|
|
||||||
head -n1 | \
|
|
||||||
awk -F ' ' '{ print $2}' | \
|
|
||||||
tr -cd '[[:alnum:]]._-')
|
tr -cd '[[:alnum:]]._-')
|
||||||
|
|
||||||
WEBHASHLATEST=$(curl -s https://api.github.com/repos/pi-hole/AdminLTE/commits/master | \
|
#PHHASHLATEST=$(curl -s https://api.github.com/repos/pi-hole/pi-hole/commits/master | \
|
||||||
grep sha | \
|
# grep sha | \
|
||||||
head -n1 | \
|
# head -n1 | \
|
||||||
awk -F ' ' '{ print $2}' | \
|
# awk -F ' ' '{ print $2 }' | \
|
||||||
tr -cd '[[:alnum:]]._-')
|
# tr -cd '[[:alnum:]]._-')
|
||||||
|
|
||||||
|
#WEBHASHLATEST=$(curl -s https://api.github.com/repos/pi-hole/AdminLTE/commits/master | \
|
||||||
|
# grep sha | \
|
||||||
|
# head -n1 | \
|
||||||
|
# awk -F ' ' '{ print $2 }' | \
|
||||||
|
# tr -cd '[[:alnum:]]._-')
|
||||||
|
|
||||||
|
|
||||||
normalOutput() {
|
normalOutput() {
|
||||||
|
Reference in New Issue
Block a user