From 129d1d375fa04097673e179ac7a674f81daa5eab Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 30 Mar 2016 12:57:30 +0200 Subject: [PATCH] bug #4386: ignore case retrieving appmarket size (cherry picked from commit 11432a15457c4da18b6f44687881d4b03bb18a31) --- src/datastore_mad/remotes/libfs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/datastore_mad/remotes/libfs.sh b/src/datastore_mad/remotes/libfs.sh index f130dd81ea..de51065c82 100644 --- a/src/datastore_mad/remotes/libfs.sh +++ b/src/datastore_mad/remotes/libfs.sh @@ -170,12 +170,12 @@ function fs_size { http://*|https://*) HEADERS=`curl -LIk --max-time 60 $1 2>&1` - if echo "$HEADERS" | grep -q "OpenNebula-AppMarket-Size"; then + if echo "$HEADERS" | grep -i -q "OpenNebula-AppMarket-Size"; then # An AppMarket/Marketplace URL - SIZE=$(echo "$HEADERS" | grep "^OpenNebula-AppMarket-Size:" | tail -n1 | cut -d: -f2) + SIZE=$(echo "$HEADERS" | grep -i "^OpenNebula-AppMarket-Size:" | tail -n1 | cut -d: -f2) else # Not an AppMarket/Marketplace URL - SIZE=$(echo "$HEADERS" | grep "^Content-Length:" | tail -n1 | cut -d: -f2) + SIZE=$(echo "$HEADERS" | grep -i "^Content-Length:" | tail -n1 | cut -d: -f2) fi error=$? ;;