Skip to content

Commit 529085b

Browse files
authored
Adding bash as command interpreter (#2)
1 parent fc0b86f commit 529085b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.0.7
4+
5+
Added bash as command interpreter of local-exec.
6+
37
## 0.0.6
48

59
Added escaping of local-exec command path to handle Windows paths.

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resource "null_resource" "docker_pullpush" {
88
shell_hash = sha256("${var.docker_source}${var.ecr_repo_name}${var.ecr_repo_tag}")
99
}
1010
provisioner "local-exec" {
11+
interpreter = ["bash", "-c"]
1112
command = "${local.module_path}/docker_pullpush.sh ${var.docker_source} ${var.aws_region} ${var.aws_account_id} ${var.ecr_repo_name} ${var.ecr_repo_tag} ${var.aws_profile}"
1213
}
1314
}

0 commit comments

Comments
 (0)