From d2696b552a3c15285f256824b80783a1cc8e1b80 Mon Sep 17 00:00:00 2001 From: Kevin Barroga Date: Fri, 10 Mar 2017 11:13:26 -1000 Subject: [PATCH] Update guac-upgrade.sh Fixed spaces on VERSION line Appended '|rtrimstr("/")' to '.preferred' to remove trailing "/" --- guac-upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guac-upgrade.sh b/guac-upgrade.sh index c611321..d68a519 100644 --- a/guac-upgrade.sh +++ b/guac-upgrade.sh @@ -1,5 +1,5 @@ -VERSION = "0.9.11" -SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred') +VERSION="0.9.11" +SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') # Stop Tomcat service tomcat8 stop