From e9d7ff1b1e162968aee93a030ba8b232dcd21612 Mon Sep 17 00:00:00 2001 From: Graham Booker Date: Mon, 12 Dec 2016 11:23:41 -0600 Subject: [PATCH] Corrected some strings for install and fail when version fetch fails. --- root/installBinary.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/installBinary.sh b/root/installBinary.sh index 24dbd8d..120b13d 100755 --- a/root/installBinary.sh +++ b/root/installBinary.sh @@ -7,11 +7,11 @@ if [ "${TAG}" != "plexpass" ] && [ "${TAG}" != "public" ]; then remoteFile=$(echo "${versionInfo}" | sed -n 's/.*file="\([^"]*\)".*/\1/p') if [ -z "${remoteVersion}" ] || [ -z "${remoteFile}" ]; then - echo "Could not get update version" - exit 0 + echo "Could not get install version" + exit 1 fi - echo "Atempting to upgrade to: ${remoteVersion}" + echo "Atempting to install: ${remoteVersion}" rm -f /tmp/plexmediaserver*.deb wget -nv --show-progress --progress=bar:force:noscroll -O /tmp/plexmediaserver.deb \ "https://plex.tv/${remoteFile}"