Skip to content

Commit 546cee0

Browse files
committed
Fix interactive passphrase
As done in #103 but simpler.
1 parent 136b7cd commit 546cee0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rooted-ota.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,10 @@ function patchOTAs() {
349349
# We need to add .tmp to PATH, but we can't use $PATH: because this would be the PATH of the host not the container
350350
# Python image is designed to run as root, so chown the files it creates back at the end
351351
# ... room for improvement 😐️
352-
docker run --rm -v "$PWD:/app" -w /app \
352+
# shellcheck disable=SC2046
353+
docker run --rm -i $(tty &>/dev/null && echo '-t') -v "$PWD:/app" -w /app \
353354
-e PATH='/bin:/usr/local/bin:/sbin:/usr/bin/:/app/.tmp' \
354-
-e PASSPHRASE_AVB="$PASSPHRASE_AVB" -e PASSPHRASE_OTA="$PASSPHRASE_OTA" \
355+
--env-file <(env) \
355356
python:${PYTHON_VERSION} sh -c \
356357
"apk add openssh && \
357358
pip install -r .tmp/my-avbroot-setup/requirements.txt && \

0 commit comments

Comments
 (0)