Fixed: Used correct syntax to conctenate bash variable and string such that wgent command runs properly.(OFBIZ-12066)
@@ -49,7 +49,7 @@ downloadFile() {
fi
elif [ -n "$(whereIsBinary wget)" ]; then
GET_CMD="wget -q -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 --server-response $2/$1";
- GET_CMD="$GET_CMD"' 2>&1 > /dev/null | grep "HTTP/.* 200"';
+ GET_CMD="$GET_CMD 2>&1 > /dev/null | grep 'HTTP/.* 200'";
if [ -n "$($GET_CMD)" ]; then
return 0;
fi
