In the script we are making use of bash and not sh. Please fix that tiny nit by removing 'sh' completely. You can start the script by itself given that it has the executable bit set.