Mending TeamViewerQS call

This commit is contained in:
Gal Szkolnik 2022-08-23 17:18:37 -04:00
parent b31dec0570
commit 0edd03736c
1 changed files with 1 additions and 1 deletions

View File

@ -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