Main script triggers second and it has to run at specific interval

Hi Friends,
I am newbie to shell programming and I am stuck trying to accomplish following task.We use Bamboo CI which executes script1 passing parameters. This Main script executes script2 as backend process as part of one of it statements. Task of script2 is to essentially check whether a particular site is up and running, once it is up has to execute sequence of steps.
I implemented this using

script2.sh:
curl url -o test.page
count = cat test.page | grep copyrights |wc -l
if (count -gt 0); then
execute statements.
else
script2.sh $args & sleep 10

Now the problem is , even though I am calling it after 10 secs. It does not seem to execute.

Can someone direct me please?

Thanks in advance
Aditya