Comment 1 for bug 638267

Revision history for this message
chocolateboy (chocolateboy) wrote : Re: Syntax error in double loop

Presumably it's a typo as there's only one "done". Changing it to:

    for LIST in $(find /etc/apt/ -name "*.list" -exec readlink '{}' \;); do

- fixes that error, but then two additional errors occur:

    Updating packages lists
    /usr/sbin/ppa-purge: 165: APT: not found
    /usr/sbin/ppa-purge: 165: APTALT: not found

If these are changed to $ALT and $APTALT the script works. Patch attached.