mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Split local variable declaration from assignment (#205)
This allows the return code to be correctly set. Previously, RET was always being set to 0... the result of assigning the local variable.
This commit is contained in:
parent
193f8f832a
commit
cfb805b298
1 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,8 @@ getLocalSHA() {
|
||||||
# RNNG
|
# RNNG
|
||||||
running() {
|
running() {
|
||||||
# If a server is unclaimed, it probably doesn't have TLS enabled either
|
# If a server is unclaimed, it probably doesn't have TLS enabled either
|
||||||
local DATA="$(wget -q -O - http://$1:$2/status/sessions)"
|
local DATA
|
||||||
|
DATA="$(wget -q -O - http://$1:$2/status/sessions)"
|
||||||
local RET=$?
|
local RET=$?
|
||||||
|
|
||||||
if [ ${RET} -eq 6 ]; then
|
if [ ${RET} -eq 6 ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue