From 4dc83bd7c03b233fccc1cea5848d41899d916939 Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Sun, 30 Aug 2015 09:40:59 -0400
Subject: build/roms/withgrub: simplify use of rm commands

---
(limited to 'resources/scripts/helpers')

diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub
index 3032ab4..7283c1a 100755
--- a/resources/scripts/helpers/build/roms/withgrub
+++ b/resources/scripts/helpers/build/roms/withgrub
@@ -106,8 +106,7 @@ if [ -d "bin/grub/" ]; then
 				do
 					dd if="ich9fdgbe_${romsize}.bin" of="${rom}" bs=1 count=12k conv=notrunc
 				done
-				rm -f "ich9fd"*.bin
-				rm -f "mk"*.[ch]
+				rm -f "ich9fd"*.bin "mk"*.[ch]
 				cd "../"
 			fi
 		done
@@ -115,10 +114,7 @@ if [ -d "bin/grub/" ]; then
 	cd ../../
 fi
 
-# The GRUB payloads are no longer needed
-rm -f "coreboot/grub_vesafb.elf"
-rm -f "coreboot/grub_txtmode.elf"
-# The GRUB configs are no longer needed
-rm -f coreboot/grub*cfg
+# The GRUB files are no longer needed
+rm -f "coreboot/grub"*.{elf,cfg}
 
 printf "\n\n"
--
cgit v0.9.1