diff --git a/updater.sh b/updater.sh index a1f7070..ab444db 100755 --- a/updater.sh +++ b/updater.sh @@ -241,7 +241,7 @@ remove_comments() { # expects 2 arguments: from-file and to-file # Applies latest version of user.js and any custom overrides update_userjs() { - declare -r newfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')" + declare -r newfile="$HOME/.mozilla/firefox/user.js" [ -z "${newfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && return 1 # check if download failed echo -e "Please observe the following information: @@ -255,7 +255,7 @@ update_userjs() { echo -e "\n" if [[ $REPLY =~ ^[Nn]$ ]]; then echo -e "${RED}Process aborted${NC}" - rm "$newfile" + #rm $newfile return 1 fi fi @@ -272,7 +272,7 @@ update_userjs() { [ "$BACKUP" = 'single' ] && bakname='userjs_backups/user.js.backup' cp user.js "$bakname" &>/dev/null - mv "${newfile}" user.js + cp "${newfile}" user.js echo -e "Status: ${GREEN}user.js has been backed up and replaced with the latest version!${NC}" if [ "$ESR" = true ]; then