Disable TTY

This commit is contained in:
2025-06-02 02:17:46 +02:00
parent 0bac448ac6
commit a40805bf79
2 changed files with 8 additions and 2 deletions

View File

@@ -2,7 +2,13 @@
set -e
main() {
declare -a args=("--rm" "--workdir" "${PWD}" "--volume" "${PWD}:${PWD}" "-t")
declare -a args=("--rm" "--workdir" "${PWD}" "--volume" "${PWD}:${PWD}")
if [ -t 1 ]; then
args+=("-t")
else
args+=("-T")
fi
if [ -n "${INFISICAL_TOKEN}" ]; then
args+=("--env" "INFISICAL_TOKEN=${INFISICAL_TOKEN}")

View File

@@ -9,7 +9,7 @@ dc_infisical() {
return
fi
docker compose run --rm cli infisical "$@"
docker compose run --rm -T cli infisical "$@"
}
fetch_secret() {