Update rebuild.sh

This commit is contained in:
Stefan Pejcic
2024-12-03 12:49:19 +01:00
committed by GitHub
parent 7abee45433
commit e88b889edb

View File

@@ -43,7 +43,7 @@ response=$(curl -s -X POST \
-d "{\"type\":\"snapshot\",\"name\":\"${version} demo snapshot\"}" \
"https://api.digitalocean.com/v2/droplets/$droplet_id/actions")
snapshot_id=$(echo "$response" | jq -r '.action.resource_id')
snapshot_id=$(echo "$response" | jq -r '.action.id')
if [ "$snapshot_id" != "null" ] && [ -n "$snapshot_id" ]; then
echo "Snapshot ID: $snapshot_id"