mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-03 23:43:40 +02:00
Update updater.sh
This commit is contained in:
parent
5c969c413c
commit
afbeff7e85
1 changed files with 5 additions and 4 deletions
|
@ -62,21 +62,22 @@ legacy_argument () {
|
|||
echo -e "Please view the new options using the -h argument."${NC}
|
||||
}
|
||||
|
||||
# Arguement defaults
|
||||
UPDATE="check"
|
||||
# Argument defaults
|
||||
UPDATE="check"
|
||||
CONFIRM="yes"
|
||||
OVERRIDE="user-overrides.js"
|
||||
BACKUP="multiple"
|
||||
MINIFY="false"
|
||||
|
||||
if [ $# != 0 ]; then
|
||||
legacy_lc="$(echo $1 | tr '[A-Z]' '[a-z]')"
|
||||
# Display usage if first arguement is -help or --help
|
||||
if [ $1 = "--help" ] || [ $1 = "-help" ]; then
|
||||
usage
|
||||
elif [ $1 = "-donotupdate" ]; then
|
||||
elif [ $legacy_lc = "-donotupdate" ]; then
|
||||
UPDATE="no"
|
||||
legacy_argument $1
|
||||
elif [ $1 = "-update" ]; then
|
||||
elif [ $legacy_lc = "-update" ]; then
|
||||
UPDATE="yes"
|
||||
legacy_argument $1
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue