allow interactive TTY if available

This commit is contained in:
Aiden McClelland
2022-06-07 15:31:28 -06:00
committed by Aiden McClelland
parent 901ea6203e
commit 7854885465
5 changed files with 30 additions and 5 deletions

View File

@@ -8,7 +8,12 @@ if [ "$0" != "./build-prod.sh" ]; then
exit 1
fi
alias 'rust-arm64-builder'='docker run --rm -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src -P start9/rust-arm-cross:aarch64'
USE_TTY=
if tty -s; then
USE_TTY="-it"
fi
alias 'rust-arm64-builder'='docker run $USE_TTY --rm -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src -P start9/rust-arm-cross:aarch64'
cd ..
FLAGS=""