aboutsummaryrefslogtreecommitdiff
path: root/builddeps-flashrom
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 /builddeps-flashrom
parent2ccadda5b6d1505c12d49fb1c9dcc0f9631a8ad4 (diff)
downloadlibrebootfr-82412a5394acd18064ba62f85f2026a602e692b7.tar.gz
librebootfr-82412a5394acd18064ba62f85f2026a602e692b7.zip
scripts (all): replace unnecessary rm -rf with rm -f
Diffstat (limited to 'builddeps-flashrom')
-rwxr-xr-xbuilddeps-flashrom10
1 files changed, 5 insertions, 5 deletions
diff --git a/builddeps-flashrom b/builddeps-flashrom
index d6308276..c549128b 100755
--- a/builddeps-flashrom
+++ b/builddeps-flashrom
@@ -34,8 +34,8 @@ cd flashrom
# clean it first
make clean
# remove modified binaries aswell
-rm -rf flashrom_lenovobios_sst
-rm -rf flashrom_lenovobios_macronix
+rm -f flashrom_lenovobios_sst
+rm -f flashrom_lenovobios_macronix
# patch flashchips.c to remove the useless Macronix entries (for X60/T60)
# makes flashrom work without having to use "-c" switch
@@ -48,7 +48,7 @@ else
make SHARED=0 CC='gcc -static'
fi
# restore default flashchips.c
-rm -rf flashchips.c
+rm -f flashchips.c
mv flashchips.c_ flashchips.c
# backup those files
@@ -63,7 +63,7 @@ else
make SHARED=0 CC='gcc -static'
fi
mv flashrom flashrom_lenovobios_macronix
-rm -rf flashchips.c
+rm -f flashchips.c
# build patched version for SST25VF016B flash chip on Lenovo BIOS X60/T60
cp ../resources/flashrom/patch/flashchips.c_lenovobios_sst flashchips.c
@@ -73,7 +73,7 @@ else
make SHARED=0 CC='gcc -static'
fi
mv flashrom flashrom_lenovobios_sst
-rm -rf flashchips.c
+rm -f flashchips.c
# restore default binary/source
mv flashchips.c_ flashchips.c