From c616930b71152c52b33b2e97fe43c3fc28ddeeec Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 21 May 2023 03:24:29 +0100 Subject: download/coreboot: remove unnecessary bloat it is not necessary to have help output similarly, listing all boards in this script is pointless. why not just run ls -1 on the directory? --- resources/scripts/download/coreboot | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot index 0092aecb..ccb407b3 100755 --- a/resources/scripts/download/coreboot +++ b/resources/scripts/download/coreboot @@ -30,19 +30,6 @@ cbrevision="" cbcfgsdir="resources/coreboot" main() -{ - if [ $# -eq 1 ] && [ "$1" = "--help" ] ; then - usage - exit 0 - elif [ $# -eq 1 ] && [ "$1" = "--list-boards" ] ; then - list_supported_boards - exit 0 - fi - - fetch_coreboot_trees $@ -} - -fetch_coreboot_trees() { rm -f ${cbcfgsdir}/*/seen @@ -186,23 +173,4 @@ prepare_new_coreboot_tree() ) } -usage() -{ - progname="./download coreboot" - printf "Usage:\n" - printf "\t%s\t\t\t# Clone coreboot for all boards\n" "${progname}" - printf "\t%s [board [board] ...] # Clone coreboot for given boards\n" \ - ${progname} - printf "\t%s --list-boards\t# Prints this help\n" ${progname} - printf "\t%s --help\t\t# List supported boards\n" ${progname} - printf "\t%s --help\t\t# Prints this help\n" ${progname} -} - -list_supported_boards() -{ - for _board in "${cbcfgsdir}/"*; do - echo ${_board} | sed 's#${cbcfgsdir}/##' - done -} - main $@ -- cgit v1.2.1