I am not very familiar with the agent, but with Linux I may be able to help.
Could you run the installer.sh file without any arguments?
Try again with
Some should give you some debug or at least help on how to enable some sort of debugging the script.
Bash/Linux allows to run additionally the shell interpreter, which NORMALLY is not "bash" but simply "sh". The debug of sh is run with sh -x installer.sh
It might give help on what it is trying to do prior failing.