Sorry , was not able to try this until now!
So I think I was supposed to change following lines in .sh file
EXTERNAL_RTC="rtc0"
INTERNAL_RTC="rtc"
[I put rtc0 and rtc in there]
and I copied the .sh file to /etc/conf.d and ran it using sudo but I get only this output
Current date on RTC (/dev/rtc0):
And nothing else.
Thanks for helping me with this , but its still not working.