mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Remove unnecessary variable
This commit is contained in:
parent
d80a02a2db
commit
edb5946faf
1 changed files with 6 additions and 7 deletions
|
@ -139,8 +139,7 @@ running() {
|
||||||
}
|
}
|
||||||
|
|
||||||
trimQuotes() {
|
trimQuotes() {
|
||||||
local __retvar=$1
|
local __buffer=$1
|
||||||
local __buffer=${!__retvar}
|
|
||||||
|
|
||||||
# Remove leading single quote
|
# Remove leading single quote
|
||||||
__buffer=${__buffer#\'}
|
__buffer=${__buffer#\'}
|
||||||
|
@ -182,11 +181,11 @@ do
|
||||||
(-u) AUTOUPDATE_CL=yes;;
|
(-u) AUTOUPDATE_CL=yes;;
|
||||||
(-U) IGNOREAUTOUPDATE=yes;;
|
(-U) IGNOREAUTOUPDATE=yes;;
|
||||||
|
|
||||||
(--config) shift; CONFIGFILE="$1"; CONFIGFILE=$(trimQuotes CONFIGFILE);;
|
(--config) shift; CONFIGFILE="$1"; CONFIGFILE=$(trimQuotes ${CONFIGFILE});;
|
||||||
(--dldir) shift; DOWNLOADDIR_CL="$1"; DOWNLOADDIR_CL=$(trimQuotes DOWNLOADDIR_CL);;
|
(--dldir) shift; DOWNLOADDIR_CL="$1"; DOWNLOADDIR_CL=$(trimQuotes ${DOWNLOADDIR_CL});;
|
||||||
(--email) shift; EMAIL_CL="$1"; EMAIL_CL=$(trimQuotes EMAIL_CL);;
|
(--email) shift; EMAIL_CL="$1"; EMAIL_CL=$(trimQuotes ${EMAIL_CL});;
|
||||||
(--pass) shift; PASS_CL="$1"; PASS_CL=$(trimQuotes PASS_CL);;
|
(--pass) shift; PASS_CL="$1"; PASS_CL=$(trimQuotes ${PASS_CL});;
|
||||||
(--server) shift; PLEXSERVER_CL="$1"; PLEXSERVER_CL=$(trimQuotes PLEXSERVER_CL);;
|
(--server) shift; PLEXSERVER_CL="$1"; PLEXSERVER_CL=$(trimQuotes ${PLEXSERVER_CL});;
|
||||||
(--saveconfig) SAVECONFIG=yes;;
|
(--saveconfig) SAVECONFIG=yes;;
|
||||||
|
|
||||||
(--) ;;
|
(--) ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue