Skip to content

Commit 9c61f7a

Browse files
committed
Redirect stderr to stdout
1 parent 7183286 commit 9c61f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/utils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ init_terraform() {
88
--volume aws-provider:/app/src/aws/.terraform \
99
--volume github-provider:/app/src/github/.terraform \
1010
--volume heroku-provider:/app/src/heroku/.terraform \
11-
infrastructure:"$GITHUB_COMMIT_SHA" -chdir=src/"$dir" init -input=false
11+
infrastructure:"$GITHUB_COMMIT_SHA" -chdir=src/"$dir" init -input=false 2>&1
1212
done
1313
}
1414

@@ -22,7 +22,7 @@ format_terraform() {
2222
--volume aws-provider:/app/src/aws/.terraform \
2323
--volume github-provider:/app/src/github/.terraform \
2424
--volume heroku-provider:/app/src/heroku/.terraform \
25-
infrastructure:"$GITHUB_COMMIT_SHA" -chdir=src/"$dir" fmt -check
25+
infrastructure:"$GITHUB_COMMIT_SHA" -chdir=src/"$dir" fmt -check 2>&1
2626
done
2727
}
2828

@@ -36,6 +36,6 @@ validate_terraform() {
3636
--volume aws-provider:/app/src/aws/.terraform \
3737
--volume github-provider:/app/src/github/.terraform \
3838
--volume heroku-provider:/app/src/heroku/.terraform \
39-
infrastructure:"$GITHUB_COMMIT_SHA" -chdir=src/"$dir" validate -json
39+
infrastructure:"$GITHUB_COMMIT_SHA" -chdir=src/"$dir" validate -json 2>&1
4040
done
4141
}

0 commit comments

Comments
 (0)