Code Foundation Exam

Hi guys!

I havnt been able to get my marks on the exam of code foundation regarding the linux part on scripts with arguments, my script seem fine but the grader sometimes fail the medium square part and always the big square. It is exactly like the examples, the small square always works and in the simulation everything seems fine. How can i solve this?

Thank you!