title: Unable to run shell script in Terraform
body: <p>I am trying to run a shell script with the local-exec command in Terraform. When I run this, it keeps coming up with the error <code>"Can't open appsettings.sh"</code>. This script runs fine when run manually. Any ideas what I am missing?</p>
  
  <pre><code>resource "null_resource" "sp" {
  
    triggers = {
      shell_hash = "${sha256(file("${path.module}/appsettings.sh"))}"
    }
    provisioner "local-exec" {
        command = "appsettings.sh ${azuread_application.rbac-server-principal.application_id} ${azuread_application.rbac-client-principal.application_id}"
        interpreter = ["sh"]
        working_dir = "${path.module}"
    }
  }
  </code></pre>
  
  <p>error message:</p>
  
  <pre><code>Error: Error running command 'appsettings.sh 59942507-xxxx-xxxx-xxxxx 4c64-xxxx-xxxx-xxxxx': exit status 127. Output: sh: 0: Can't open appsettings.sh 59942507-xxxx-xxxx-xxxxx 4c64-xxxx-xxxx-xxxxx'
  </code></pre>