autoupdater: make cleanup more secure

This commit is contained in:
Jan-Philipp Litza 2014-01-12 18:58:41 +01:00
parent 0d01eb472a
commit bca358bdee
1 changed files with 4 additions and 4 deletions

View File

@ -32,10 +32,10 @@ newer_than() {
}
cleanup() {
rm -f $manifest
rm -f $fw_image
rm -f $manifest_upper
rm -f $manifest_lower
[ -f "$manifest" ] && rm -f "$manifest"
[ -f "$fw_image" ] && rm -f "$fw_image"
[ -f "$manifest_upper" ] && rm -f "$manifest_upper"
[ -f "$manifest_lower" ] && rm -f "$manifest_lower"
}
fail() {