Phi test in r. Please use #!/bin/bash instead.