mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
core: remove bashisms from emu.sh
This commit is contained in:
parent
a3717c7b6c
commit
917f5c6534
@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
source emu.config 2>/dev/null
|
||||
if [ -f emu.config ]; then
|
||||
. emu.config
|
||||
fi
|
||||
|
||||
EXE=build/unix/micropython
|
||||
PYOPT="${PYOPT:-1}"
|
||||
@ -15,7 +17,7 @@ case "$1" in
|
||||
"-d")
|
||||
shift
|
||||
OPERATING_SYSTEM=$(uname)
|
||||
if [ $OPERATING_SYSTEM == "Darwin" ]; then
|
||||
if [ "$OPERATING_SYSTEM" = "Darwin" ]; then
|
||||
PATH=/usr/bin /usr/bin/lldb -f $EXE -- $ARGS $* $MAIN
|
||||
else
|
||||
gdb --args $EXE $ARGS $* $MAIN
|
||||
|
Loading…
Reference in New Issue
Block a user