|
@ -49,10 +49,8 @@ done |
|
|
|
|
|
|
|
|
# check environment folder |
|
|
# check environment folder |
|
|
if [ ! -f $ELF ]; then |
|
|
if [ ! -f $ELF ]; then |
|
|
if [ $ENVIRONMENT == "" ]; then |
|
|
|
|
|
ELF=.pioenvs/$ENVIRONMENT/firmware.elf |
|
|
ELF=.pioenvs/$ENVIRONMENT/firmware.elf |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
if [ ! -f $ELF ]; then |
|
|
if [ ! -f $ELF ]; then |
|
|
echo "Could not find ELF file for the selected environment: $ELF" |
|
|
echo "Could not find ELF file for the selected environment: $ELF" |
|
|
exit 2 |
|
|
exit 2 |
|
|