From 378e04e968a469f89cc410493d604cb9d12eea18 Mon Sep 17 00:00:00 2001 From: Leah Woods Date: Wed, 18 May 2016 16:41:15 -0400 Subject: 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. --- (limited to 'download') diff --git a/download b/download index f89fff8..ca4ccc4 100755 --- 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 -- cgit v0.9.1