summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah Woods <info@minifree.org>2016-05-18 16:41:15 (EDT)
committer Leah Woods <info@minifree.org>2016-05-18 16:41:15 (EDT)
commit378e04e968a469f89cc410493d604cb9d12eea18 (patch)
treef0df821da9df986edde16c4e64c40a11277cc12f
parent6b1d53dc239e27e44b666a87b958332625d4705f (diff)
downloadlibreboot-378e04e968a469f89cc410493d604cb9d12eea18.zip
libreboot-378e04e968a469f89cc410493d604cb9d12eea18.tar.gz
libreboot-378e04e968a469f89cc410493d604cb9d12eea18.tar.bz2
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.
-rwxr-xr-xdownload26
1 files changed, 18 insertions, 8 deletions
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