trivial: debian: Don't use --parents when rmdir'ing /var/*/fwupdate

Calling 'rmdir --parents /var/cache/fwupdate' will cause it to attempt
to rmdir /var/cache and /var. Those directories are very unlikely to be
empty, so it should always quietly fail. However, there's not benefit
in attempting those removals, so let's quit doing it.
This commit is contained in:
dann frazier 2020-01-21 14:18:21 -07:00 committed by Mario Limonciello
parent 64d868a77b
commit b25be977a9

View File

@ -29,6 +29,6 @@ rm -f /var/lib/fwupdate/done
rm -f /var/cache/fwupdate/done
for dir in /var/cache/fwupdate /var/lib/fwupdate; do
if [ -d $dir ]; then
rmdir --parents --ignore-fail-on-non-empty $dir || true
rmdir --ignore-fail-on-non-empty $dir || true
fi
done