From e362ac8caa110cdf1a8759dbdc34cb0a2212877e Mon Sep 17 00:00:00 2001 From: Romain Marcadier-Muller Date: Tue, 4 Jun 2019 14:14:11 +0200 Subject: [PATCH] fix(build): Correct buildspec so it does not fail (#2737) --- buildspec.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildspec.yaml b/buildspec.yaml index 4277a228ff3bf..97f31c3c91e31 100644 --- a/buildspec.yaml +++ b/buildspec.yaml @@ -12,7 +12,12 @@ phases: - /bin/bash ./build.sh post_build: commands: - - "[ -f .BUILD_COMPLETED ] && [ -z \"${SKIP_PACK:-}\" ] && /bin/bash ./pack.sh" + - | + if [ -f .BUILD_COMPLETED ]; then + if [ -z \"${SKIP_PACK:-}\" ]; then + /bin/bash ./pack.sh + fi + fi artifacts: files: - "**/*"