Skip to content
Snippets Groups Projects

Upload delta bundles to hawkBit

Merged Andrej Shadura requested to merge wip/andrewsh/hawkbit-upload into apertis/v2020pre
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -65,7 +65,7 @@ distribution() {
echo " Creating software module..."
resp="$(curl -sS --user $user:$password $url/rest/v1/softwaremodules -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-d "[ {\"vendor\" : \"Apertis\", \"name\" : \"Module$name\", \"description\" : \"$desc\", \"type\" : \"$module_type\", \"version\" : \"$ver\" } ]")"
-d "[ {\"vendor\" : \"Apertis\", \"name\" : \"$name\", \"description\" : \"$desc\", \"type\" : \"$module_type\", \"version\" : \"$ver\" } ]")"
check_error "$resp" "Creating software module failed with error"
module_url="$(echo "$resp" | jq -r '.[]._links.self.href')"
module_id="$(echo "$resp" | jq -r '.[].id')"
Loading