Skip to content

Commit

Permalink
padd_data is a global variable
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Aug 9, 2024
1 parent e18403b commit 573d36f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ padd_version="v4.0.0"
LastCheckPADDInformation=$(date +%s)
LastCheckFullInformation=$(date +%s)

# padd_data holds the data returned by FTL's /padd endpoint globally
padd_data=""

# COLORS
CSI="$(printf '\033')[" # Control Sequence Introducer
red_text="${CSI}91m" # Red
Expand Down Expand Up @@ -242,6 +245,9 @@ Authenticate() {

GetFTLData() {
local response
local data
local status

# get the data from querying the API as well as the http status code
response=$(curl -sk -w "%{http_code}" -X GET "${API_URL}$1$2" -H "Accept: application/json" -H "sid: ${SID}" )

Expand Down

0 comments on commit 573d36f

Please sign in to comment.