Please either don't use bash syntax, or otherwise just change the script to explicitly use bash.