get.sh submodules: Don't delete files recursively

I overlooked this in a previous patch. It doesn't really
matter, since we're operating on a file anyway, but it's
not correct.

Files should have rm -f on them, not rm -Rf, for deletion.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-14 16:52:33 +01:00
parent 8d5475ed5b
commit d9ed03f9ea
+1 -1
View File
@@ -114,7 +114,7 @@ try_file()
else
bad_checksum "$6" "$cached" && x_ rm -f "$cached" && return 1
[ "$cached" != "$5" ] && x_ cp "$cached" "$5"
bad_checksum "$6" "$5" && x_ rm -rf "$5" && return 1; :
bad_checksum "$6" "$5" && x_ rm -f "$5" && return 1; :
fi
}