Closed huan086 closed 3 years ago
Run the alternate setup instructions in Ubuntu
curl -sL \ https://raw.githubusercontent.com/radekg/terraform-provisioner-ansible/master/bin/deploy-release.sh \ --output /tmp/deploy-release.sh chmod +x /tmp/deploy-release.sh /tmp/deploy-release.sh -v 2.3.3
Script runs
Error with /tmp/deploy-release.sh: 2: set: Illegal option -o pipefail
/tmp/deploy-release.sh: 2: set: Illegal option -o pipefail
pipefail isn't a POSIX standard and thus the file should start with #!/usr/bin/env bash. Ubuntu uses dash shell by default
#!/usr/bin/env bash
Steps to reproduce
Run the alternate setup instructions in Ubuntu
Expected behavior
Script runs
Actual behavior
Error with
/tmp/deploy-release.sh: 2: set: Illegal option -o pipefail
Fix
pipefail isn't a POSIX standard and thus the file should start with
#!/usr/bin/env bash
. Ubuntu uses dash shell by default