diff options
author | Leah Rowe <leah@libreboot.org> | 2022-03-06 17:07:45 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2022-03-06 17:07:45 +0000 |
commit | 9557da45df2dfe16cde612d56ea44207df4a8ebf (patch) | |
tree | f277654f8f016c2f5fe69ca1b1983ae0eb50a313 /resources/scripts/download/coreboot | |
parent | 89aac5393aaccf7104a41e730456f6e56b35a703 (diff) | |
parent | 3b80a42aa01dd4a26a400193769bd039da241234 (diff) |
Merge branch 'master' of GNUtoo/lbmk into master
Diffstat (limited to 'resources/scripts/download/coreboot')
-rwxr-xr-x | resources/scripts/download/coreboot | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot index b94b1bc9..21fe0781 100755 --- a/resources/scripts/download/coreboot +++ b/resources/scripts/download/coreboot @@ -49,10 +49,14 @@ usage() "Prints this help" } -if [ $# -eq 1 -a "$1" == "--help" ] ; then +# In this script, set -u is used to check for undefined variables, and +# the test command doesn't do any lazy evaluation, so we can't use +# a syntax like that: [ $# -eq 1 -a "$1" == "--help" ]. + +if [ $# -eq 1 ] && [ "$1" == "--help" ] ; then usage exit 0 -elif [ $# -eq 1 -a "$1" == "--list-boards" ] ; then +elif [ $# -eq 1 ] && [ "$1" == "--list-boards" ] ; then list_supported_boards exit 0 fi |