How to add multiple tar file to a script

I have appended a tar file to my installation script so that while installing i can unzip from there (specifying the starting line number) and install a package.

This work fine if i add one tar file. But suppose i have to install different packages depending on the platform the script is run. i appended different tar files to the script so that depending on the system platform i can install different scripts. Problem is this is not working. :confused: