diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-13 10:52:26 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-13 10:52:26 (EDT) |
commit | 8bc655f014eeb24bf52ffc83e0b8ae9d987569d5 (patch) | |
tree | af0f32df37a6dcad6be66a0c8b2a2665d0c82e1e /flash | |
parent | 7818c6b797fbe0a5f864a11dd52412ebc5d0d98f (diff) | |
download | libreboot-8bc655f014eeb24bf52ffc83e0b8ae9d987569d5.zip libreboot-8bc655f014eeb24bf52ffc83e0b8ae9d987569d5.tar.gz libreboot-8bc655f014eeb24bf52ffc83e0b8ae9d987569d5.tar.bz2 |
flashing script: fix broken if/else chain
Diffstat (limited to 'flash')
-rwxr-xr-x | flash | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,12 +55,12 @@ if [ $# -lt 2 ]; then fi # User specified an invalid mode of operation -if [ "${1}" = "update" ] || [ "${1}" = "forceupdate" ] || [ "${1}" = "i945lenovo_firstflash" ] || [ "${1}" != "i945lenovo_secondflash" ] || [ "${1}" != "i945apple_firstflash" ]; then - printf "Mode selected: %s\n" "${1}" -else +if [ "${1}" != "update" ] && [ "${1}" != "forceupdate" ] && [ "${1}" != "i945lenovo_firstflash" ] && [ "${1}" != "i945lenovo_secondflash" ] && [ "${1}" != "i945apple_firstflash" ]; then printf "%s\n" "${usage}" printf "Invalid mode. Modes available: %s\n" "${availablemodes}" exit 1 +else + printf "Mode selected: %s\n" "${1}" fi # The specified file does not exist |