From 2db7716213fcadba2fc48ddd5392c9fdb17ccace Mon Sep 17 00:00:00 2001 From: lectrode Date: Sun, 30 Jun 2024 16:35:06 -0600 Subject: [PATCH] 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. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 918b69f7..b7fcf6ef 100755 --- a/install.sh +++ b/install.sh @@ -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