1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-08 05:57:23 +03:00
This commit is contained in:
Jaime Melis 2014-07-24 16:51:36 +02:00
parent 29dc081c37
commit e5d04c1a19

View File

@ -158,7 +158,7 @@ function fs_size {
HEADERS=`curl -LIk --max-time 60 --fail $1 2>&1`
error=$?
if [ "$?" != "0" ]; then
if [ "$?" = "0" ]; then
if echo "$HEADERS" | grep -q "OpenNebula-AppMarket-Size"; then
# An AppMarket/Marketplace URL
SIZE=$(echo "$HEADERS" | grep "^OpenNebula-AppMarket-Size:" | tail -n1 | cut -d: -f2)