From 412928abb30f8c91ce1b87aa95be386b4c93569f Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Thu, 24 Jan 2019 17:03:13 -0300 Subject: [PATCH] Update updater.sh --- updater.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/updater.sh b/updater.sh index 0206a35..9b14a08 100755 --- a/updater.sh +++ b/updater.sh @@ -227,7 +227,7 @@ update_updater () { fi mv "${tmpfile}" "${SCRIPT_DIR}/updater.sh" chmod u+x "${SCRIPT_DIR}/updater.sh" - "${SCRIPT_DIR}/updater.sh" "$@ -d" + "${SCRIPT_DIR}/updater.sh" "$@" -d exit 1 } @@ -334,6 +334,9 @@ update_userjs () { echo -e "Status: ${GREEN}A diff file was created:${NC} ${PWD}/${diffname}" else echo -e "Warning: ${ORANGE}Your new user.js file appears to be identical. No diff file was created.${NC}" + if [ $BACKUP = 'multiple' ]; then + rm $bakname &>/dev/null + fi fi rm $past_nocomments $current_nocomments $pastuserjs &>/dev/null fi @@ -416,7 +419,7 @@ if [ $# != 0 ]; then fi show_banner -update_updater +update_updater $@ getProfilePath # updates PROFILE_PATH or exits on error cd "$PROFILE_PATH" && update_userjs