Remove "-e" option from updater.sh

This commit is contained in:
Minimalist 2021-12-21 13:11:46 +01:00
parent bb56056a68
commit 4779cb7e17

View file

@ -37,7 +37,6 @@ COMPARE=false
SKIPOVERRIDE=false SKIPOVERRIDE=false
VIEW=false VIEW=false
PROFILE_PATH=false PROFILE_PATH=false
ESR=false
# Download method priority: curl -> wget # Download method priority: curl -> wget
DOWNLOAD_METHOD='' DOWNLOAD_METHOD=''
@ -93,8 +92,7 @@ Optional Arguments:
Ex: -o \"override folder\" Ex: -o \"override folder\"
-n Do not append any overrides, even if user-overrides.js exists. -n Do not append any overrides, even if user-overrides.js exists.
-v Open the resulting user.js file. -v Open the resulting user.js file.
-r Only download user.js to a temporary file and open it. -r Only download user.js to a temporary file and open it."
-e Activate ESR related preferences."
echo echo
exit 1 exit 1
} }
@ -275,11 +273,6 @@ update_userjs() {
mv "${newfile}" user.js mv "${newfile}" user.js
echo -e "Status: ${GREEN}user.js has been backed up and replaced with the latest version!${NC}" echo -e "Status: ${GREEN}user.js has been backed up and replaced with the latest version!${NC}"
if [ "$ESR" = true ]; then
sed -e 's/\/\* \(ESR[0-9]\{2,\}\.x still uses all.*\)/\/\/ \1/' user.js > user.js.tmp && mv user.js.tmp user.js
echo -e "Status: ${GREEN}ESR related preferences have been activated!${NC}"
fi
# apply overrides # apply overrides
if [ "$SKIPOVERRIDE" = false ]; then if [ "$SKIPOVERRIDE" = false ]; then
while IFS=',' read -ra FILES; do while IFS=',' read -ra FILES; do
@ -357,9 +350,6 @@ if [ $# != 0 ]; then
v) v)
VIEW=true VIEW=true
;; ;;
e)
ESR=true
;;
r) r)
tfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')" tfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')"
[ -z "${tfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && exit 1 # check if download failed [ -z "${tfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && exit 1 # check if download failed