summaryrefslogtreecommitdiff
path: root/aptdpkgclean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aptdpkgclean.sh')
-rwxr-xr-xaptdpkgclean.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/aptdpkgclean.sh b/aptdpkgclean.sh
index 7de9b77..0291fdd 100755
--- a/aptdpkgclean.sh
+++ b/aptdpkgclean.sh
@@ -8,8 +8,9 @@ cat /var/lib/my_ro_hack.todel | while read file; do
b=`basename $file`; d=`dirname $file`
XF="${b#.}"; XF="$d/${XF%.dpkg-ro-used.*}"
- N2=`find "$XF" -printf "%i\n"`
+ N2=`find "$XF" -printf "%i\n"` || continue
+ [ -n "$XF" ] || continue
if [ "$N1" != "$N2" ] && ! fuser -s "$file"; then
rm -f "$file"
else