raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
878 stars 221 forks source link

tools/update-pieeprom.sh: Fix cleanup exiting 1 #126

Closed woju closed 2 years ago

woju commented 2 years ago

When not signing the configuration (no -k option), there's no $TMP_CONFIG file and test -f "$TMP_CONFIG" is false. The whole line becomes false and the script exists 1 for set -e.

This commit fixes that by moving the test to if condition.

peterharperuk commented 2 years ago

Looks good

woju commented 2 years ago

Thanks!