1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

script: Do not start emulator if running

This commit is contained in:
Saleem Rashid 2017-12-17 18:26:00 +00:00 committed by Pavol Rusnak
parent 1f2e5e2a91
commit becb31c4fc

View File

@ -10,7 +10,7 @@ cd "$(dirname "$0")/.."
trap "exit" INT TERM
trap "kill 0" EXIT
if [ "$EMULATOR" = 1 ]; then
if [ "$EMULATOR" = 1 ] && [ -z "$(pidof trezor.elf)" ]; then
firmware/trezor.elf &
fi