Need help in script

While trying to run below script, the script is going in loop everytime it runs.
This script is basically if the first curl command generates files cookies.txt and its size is more that 215v , it should exit else it should go in loop for 3 times.
But whenever i run it, it goes in the loop. Can anybody help

#!/bin/ksh
link=$(cat /local/home/link_url.txt)
curl -k -c /local/home/path/cookies.txt "$link";
1=/local/home/path/cookies.txt
minimumsize=215
actualsize=$(wc -c < "$1")
for (( i=1; i<=3; i++ ))
do
if [[ -s "$1" &&  $actualsize -lt $minimumsize ]] ||  [ ! -s "$1" ]
then
curl -k -c /local/home/path/cookies.txt "$link"
fi
done

---------- Post updated at 03:18 AM ---------- Previous update was at 02:58 AM ----------

The link_url.txt will have link like

https://www.infa-cu.com.

If i directly harcode the link in place of "$link" the script is working fine but when i am using variable and placing it as in script it is going in loop.

---------- Post updated at 03:59 AM ---------- Previous update was at 03:18 AM ----------

issue resolved by doing hit and trial

try

"${link}"