summaryrefslogtreecommitdiff
path: root/buildrom-withgrub
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-26 04:19:55 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-11-26 04:19:55 +0000
commit82412a5394acd18064ba62f85f2026a602e692b7 (patch)
treec97294812aaf3a01de352f6080c9d5e6fec9e710 /buildrom-withgrub
parent2ccadda5b6d1505c12d49fb1c9dcc0f9631a8ad4 (diff)
scripts (all): replace unnecessary rm -rf with rm -f
Diffstat (limited to 'buildrom-withgrub')
-rwxr-xr-xbuildrom-withgrub4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildrom-withgrub b/buildrom-withgrub
index 51a9c9e..d0454eb 100755
--- a/buildrom-withgrub
+++ b/buildrom-withgrub
@@ -49,7 +49,7 @@ do
mv grub.elf grub_"$romtype".elf
mv build/coreboot.rom "$1"_"$romtype".rom
# .config no longer needed
- rm -rf .config
+ rm -f .config
# Needed on i945 systems for the bucts/dd trick (documented)
# This enables the ROM to be flashed over the lenovo bios firmware
@@ -57,7 +57,7 @@ do
then
dd if="$1"_"$romtype".rom of=top64k.bin bs=1 skip=$[$(stat -c %s "$1"_"$romtype".rom) - 0x10000] count=64k
dd if=top64k.bin of="$1"_"$romtype".rom bs=1 seek=$[$(stat -c %s "$1"_"$romtype".rom) - 0x20000] count=64k conv=notrunc
- rm -rf top64k.bin
+ rm -f top64k.bin
fi
# Add the correct GRUB configuration file for this image.