From 82412a5394acd18064ba62f85f2026a602e692b7 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Tue, 25 Nov 2014 23:19:55 -0500 Subject: scripts (all): replace unnecessary rm -rf with rm -f --- (limited to 'buildrom-withgrub') 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. -- cgit v0.9.1