From 18e8c3b52daea682196c4dfad711a691044af2c8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Jul 2019 02:45:22 +0200 Subject: [PATCH] instanceinfo.sh: Fixed HTML stripper. The leading and trailing " were supposed to be removed, but only the leading one was removed. --- instanceinfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instanceinfo.sh b/instanceinfo.sh index eaddd08..13ba420 100755 --- a/instanceinfo.sh +++ b/instanceinfo.sh @@ -16,7 +16,7 @@ fi function striphtml() { local extract="${*}" - echo "${extract}" | sed 's/\\u003c//g' | sed -E 's/<[^>]+>//g' | sed 's/\\r\\n/ /g' | sed -E 's/(^"|"$)//' + echo "${extract}" | sed 's/\\u003c//g' | sed -E 's/<[^>]+>//g' | sed 's/\\r\\n/ /g' | sed -E 's/(^"|"$)//g' } function main()