mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-14 17:31:35 +00:00
2020-03-06 16:58:16
This commit is contained in:
@@ -13,10 +13,10 @@ wgetsh() {
|
||||
result1=$(curl -skL --connect-timeout 10 -m 20 -w %{http_code} -o "${mbtmp}/${wgetfilename}" "$wgeturl")
|
||||
else
|
||||
wget-ssl -q --no-check-certificate --tries=1 --timeout=10 -O "${mbtmp}/${wgetfilename}" "$wgeturl"
|
||||
[ $? -eq 0 ] && result="200"
|
||||
[ $? -eq 0 ] && result1="200"
|
||||
fi
|
||||
[ -f "${mbtmp}/${wgetfilename}" ] && result2=$(du -sh "${mbtmp}/${wgetfilename}" 2> /dev/null | awk '{print$1}')
|
||||
if [ "$result" = "200" ] && [ "$result2" != '0' ]; then
|
||||
if [ "$result1" = "200" ] && [ "$result2" != '0' ]; then
|
||||
chmod +x ${mbtmp}/${wgetfilename} > /dev/null 2>&1
|
||||
mv -f ${mbtmp}/${wgetfilename} $wgetfilepath > /dev/null 2>&1
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user