puke: really fix bug

This commit is contained in:
Dylan Araps 2019-05-14 18:58:03 +03:00
parent be7d01fa96
commit 39c28ffebc

6
puke
View File

@ -139,12 +139,12 @@ pkg_remove() {
while read -r file; do
if [ "${file%/*}" = "/etc" ]; then
false
continue
elif [ -d "$sys_dir$file" ]; then
rmdir "$sys_dir$file" 2>/dev/null
rmdir "$sys_dir$file" 2>/dev/null || continue
else
rm -- "$sys_dir$file" || log "Failed to remove $file."
fi && log "Removed $file" ||:
fi && log "Removed $file"
done < "$sys_dir/$dbs_dir/$name/manifest"
}