echo -n "Removing all files installed..."
for mod in `cat $INSTALLED/$PACKAGE/modifiers 2> /dev/null`
do
for file in `cat $INSTALLED/$PACKAGE/files.list`
do
[ $(grep ^$file$ $INSTALLED/$mod/files.list | wc -l) -gt 1 ] && continue
rm -f $file 2>/dev/null
dir="$file"
while [ "$dir" != "/" ]; do
dir="$(dirname $dir)"
rmdir $dir 2> /dev/null || break
done
done
done
I'm not really a competant shell script programmer, but doesn't this mean that if there is no modifiers list, it won't do anything? Can we have some help with this please?
It looks like you're new here. If you want to get involved, click one of these buttons!