clean_old_theme should not touch anywhere outside of the specified destination dir. This pull request tweaks this to use the dest variable if it is defined.
This addresses a bunch of warnings about being unable to delete files in /usr/share/icons... when installing the theme into a custom directory (like when compiling the AUR package). This also prevents removing existing theme files under .local if installing to a custom directory.
clean_old_theme should not touch anywhere outside of the specified destination dir. This pull request tweaks this to use the
dest
variable if it is defined.This addresses a bunch of warnings about being unable to delete files in
/usr/share/icons...
when installing the theme into a custom directory (like when compiling the AUR package). This also prevents removing existing theme files under.local
if installing to a custom directory.