Mending TeamViewerQS call
This commit is contained in:
parent
b31dec0570
commit
0edd03736c
|
@ -24,7 +24,7 @@ if [ "${TVQS}" == "gal" ]; then
|
||||||
fi
|
fi
|
||||||
LocalSize=$(wc -c "$LocalFile" 2>/dev/null | awk '{ print $1 }')
|
LocalSize=$(wc -c "$LocalFile" 2>/dev/null | awk '{ print $1 }')
|
||||||
RemoteSize=$(curl -sI "$RemoteFile" | awk -v IGNORECASE=1 '/^Content-Length/ {sub("\r",""); print $2}')
|
RemoteSize=$(curl -sI "$RemoteFile" | awk -v IGNORECASE=1 '/^Content-Length/ {sub("\r",""); print $2}')
|
||||||
if [ "$LocalSize" != "$RemoteSize" ]; then
|
if [[ ! -r "${LocalFile}" ]] || [ "$LocalSize" != "$RemoteSize" ]; then
|
||||||
echo "Downloading file into $LocalFile..."
|
echo "Downloading file into $LocalFile..."
|
||||||
curl -Lo "$LocalFile" "$RemoteFile"
|
curl -Lo "$LocalFile" "$RemoteFile"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue