fix(change_color): don't attempt to rename the theme if it's name already good (#184)
Fixes actionless/oomox#109
Fixes actionless/oomox#109
by roundabout, Friday, 8 December 2017, 10:19:06 (1512728346), pushed by roundabout, Sunday, 11 May 2025, 13:22:17 (1746969737)
Author identity: nana-4 <nana-4@users.noreply.github.com>
07b065055818f228aa38ca014d6bd9a580866bfa
SIZE_VARIANTS="${SIZE_VARIANTS}" COLOR_VARIANTS="${COLOR_VARIANTS}" THEME_DIR_BASE=${DEST_PATH} ./install.sh
GENERATED_PATH="${DEST_PATH}$(tr -d ',' <<<${COLOR_VARIANTS})$(tr -d ',' <<<${SIZE_VARIANTS})"
if [[ -d "${DEST_PATH}" ]] ; then
rm -r "${DEST_PATH}"
if [[ ! "${GENERATED_PATH}" = "${DEST_PATH}" ]] ; then
if [[ -d "${DEST_PATH}" ]] ; then
rm -r "${DEST_PATH}"
fi
mv "${GENERATED_PATH}" "${DEST_PATH}"
fi
mv "${GENERATED_PATH}" "${DEST_PATH}"
echo
echo "== SUCCESS"