From 2b2e6b7fd507428270bde0498be5cde025ed1e91 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sun, 26 Feb 2017 15:03:47 -0800 Subject: [PATCH] Add some more logging for release handling --- plexupdate.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plexupdate.sh b/plexupdate.sh index 489a08e..3cad967 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -388,6 +388,12 @@ RELEASE=$(wget --header "X-Plex-Token:"${TOKEN}"" "${URL_DOWNLOAD}" -O - 2>/dev/ DOWNLOAD=$(echo ${RELEASE} | grep -m1 -ioe 'https://[^\"]*') CHECKSUM=$(echo ${RELEASE} | grep -ioe '\"checksum\"\:\"[^\"]*' | sed 's/\"checksum\"\:\"//') +if [ "$VERBOSE" = "yes" ]; then + for i in RELEASE DOWNLOAD CHECKSUM; do + info "$i=${!i}" + done +fi + if [ -z "${DOWNLOAD}" ]; then error "Unable to retrieve the URL needed for download (Query DISTRO: $DISTRO, BUILD: $BUILD)" if [ ! -z "${RELEASE}" ]; then