Fix build script, incorrectly traps on ERR

This commit is contained in:
Aadi Desai 2023-05-12 19:53:52 +01:00
parent d057017052
commit 5f657cb46b
No known key found for this signature in database

View file

@ -19,10 +19,12 @@ rm -f demo/*.o demo/*.d demo/demo.elf demo/demo.elf.map && echo "Cleaned up buil
read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC
if [[ $FLASH_OC =~ ^[Yy]$ ]]; then if [[ $FLASH_OC =~ ^[Yy]$ ]]; then
echo # Move to next line echo # Move to next line
set +e
dfu-util -D gsd_orangecrab.dfu dfu-util -D gsd_orangecrab.dfu
set -e
else echo "Skipping Reflash" else echo "Skipping Reflash"
fi fi
read -p "Start litex_term? [y/N]" -n 1 -r START_LT read -p "Start litex_term? [y/N]" -n 1 -r START_LT
if [[ $START_LT =~ ^[Yy]$ ]]; then if [[ $START_LT =~ ^[Yy]$ ]]; then
litex_term --kernel demo.bin /dev/ttyACM0 litex_term --kernel kernel.bin /dev/ttyACM0
fi fi