From 0edd03736c18517ba91af1189e91b4967f8fe0a3 Mon Sep 17 00:00:00 2001
From: Gal Szkolnik <gszkolnik@polarisqb.com>
Date: Tue, 23 Aug 2022 17:18:37 -0400
Subject: [PATCH] Mending TeamViewerQS call

---
 .../bin/executable_launch-teamviewer-quicksupport.sh            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh b/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh
index 8e4af48..74cacfb 100644
--- a/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh
+++ b/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh
@@ -24,7 +24,7 @@ if [ "${TVQS}" == "gal" ]; then
 fi
 LocalSize=$(wc -c "$LocalFile" 2>/dev/null | awk '{ print $1 }')
 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..."
   curl -Lo "$LocalFile" "$RemoteFile"
 else