mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 23:42:16 +02:00
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:
+1
-1
@@ -114,7 +114,7 @@ try_file()
|
|||||||
else
|
else
|
||||||
bad_checksum "$6" "$cached" && x_ rm -f "$cached" && return 1
|
bad_checksum "$6" "$cached" && x_ rm -f "$cached" && return 1
|
||||||
[ "$cached" != "$5" ] && x_ cp "$cached" "$5"
|
[ "$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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user