libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 378e04e968a469f89cc410493d604cb9d12eea18
parent 6b1d53dc239e27e44b666a87b958332625d4705f
Author: Leah Woods <info@minifree.org>
Date:   Wed, 18 May 2016 21:41:15 +0100

temporary hack (./download seabios): don't ask user if they want to delete dir

We'll delete seabios/grub download scripts later and replace with a seagrub
download script.

Diffstat:
download | 26++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/download b/download @@ -75,14 +75,24 @@ for program in ${programs}; do if [ "${noconfirm}" = "0" ]; then printf "Use \"./download --noconfirm\" or \"./download -y\" if you want to be rid of these confirmation dialogues.\n\n" if [ -d "${program}/" ]; then - printf "A %s/ directory already exists, delete it? [yN]: " "${program}" - read -r answer - if [ "${answer}" = "y" ]; then - rm -Rf "${program:?}" && printf "Old %s directory deleted.\n\n" "${program}" - else - printf "%s directory not deleted, and therefore not replaced.\n" "${program}" - continue - fi + if [ "${program}" = "seabios" ]; then + # temporary hack. download grub also downloads seabios, + # which breaks automated build when running ./download all + # Later on, we'll delete the seabios download script + # and grub download script and replace both with + # a download seagrub script + + rm -Rf "${program:?}" && printf "Old %s directory deleted.\n\n" "${program}" + else + printf "A %s/ directory already exists, delete it? [yN]: " "${program}" + read -r answer + if [ "${answer}" = "y" ]; then + rm -Rf "${program:?}" && printf "Old %s directory deleted.\n\n" "${program}" + else + printf "%s directory not deleted, and therefore not replaced.\n" "${program}" + continue + fi + fi fi fi