mirror of
https://github.com/vinceliuice/Colloid-icon-theme.git
synced 2026-06-12 05:44:22 -07:00
respect specified destination dir when cleaning old files
clean_old_theme should not touch anywhere outside of the specified destination dir. This tweaks this to use the dest variable if it is defined.
This commit is contained in:
@@ -286,7 +286,7 @@ clean_old_theme() {
|
||||
for theme in '' '-purple' '-pink' '-red' '-orange' '-yellow' '-green' '-teal' '-grey'; do
|
||||
for scheme in '' '-nord' '-dracula'; do
|
||||
for color in '' '-light' '-dark'; do
|
||||
rm -rf "${DEST_DIR}/${THEME_NAME}${theme}${scheme}${color}"
|
||||
rm -rf "${dest:-${DEST_DIR}}/${THEME_NAME}${theme}${scheme}${color}"
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user