libfs.patch
| src/datastore_mad/remotes/libfs.sh | ||
|---|---|---|
| 126 | 126 | |
| 127 | 127 |
if [ $? -eq 0 ]; then |
| 128 | 128 |
#URL is from market place |
| 129 |
SIZE=`wget -O - -S --no-check-certificate $BASE_URL 2>&1|grep -E "^ *\"size\": \"?[0-9]+\"?$"|tr -dc 0-9` |
|
| 129 |
SIZE=`wget -O - -S --no-check-certificate $BASE_URL 2>&1|grep -E "^ *\"size\": \"?[0-9]+\"?.$"|tr -dc 0-9`
|
|
| 130 | 130 |
else |
| 131 | 131 |
#Not a marketplace URL |
| 132 | 132 |
SIZE=`wget -S --spider --no-check-certificate $1 2>&1 | grep Content-Length | cut -d':' -f2` |