1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

core: remove bashisms from emu.sh

This commit is contained in:
Pavol Rusnak 2019-05-28 10:19:18 +02:00
parent a3717c7b6c
commit 917f5c6534
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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