radekg / terraform-provisioner-ansible

Ansible with Terraform 0.14.x
Apache License 2.0
572 stars 100 forks source link

deploy-release.sh does not run on Ubuntu and Debian #148

Closed huan086 closed 3 years ago

huan086 commented 4 years ago

Steps to reproduce

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

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