We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0770d commit ed3c8abCopy full SHA for ed3c8ab
bin/postgres
@@ -1,3 +1,8 @@
1
#!/bin/bash
2
3
-docker compose exec -it postgres "$@"
+# If input is coming from a pipe or file, use -T to disable tty
4
+if [[ ! -t 0 ]]; then
5
+ docker compose exec -T postgres "$@"
6
+else
7
+ docker compose exec -it postgres "$@"
8
+fi
0 commit comments