The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

16 rader
606 B

  1. #!/bin/bash
  2. SNAPSHOTID=${1:?no SNAPSHOTID provided}
  3. THISDIR=$(cd $(dirname ${0}) && pwd)
  4. VCURL=${THISDIR}/vcurl
  5. if [[ ${SNAPSHOTID} == "-n" ]] ; then
  6. SNAPSHOT_NAME=${2:?no snapshot name provided}
  7. echo "Deleting snapshot named: ${SNAPSHOT_NAME}"
  8. ${0} $(${VCURL} snapshot/list | jq -r 'to_entries | .[] | select(.value.description=="'${SNAPSHOT_NAME}'") | .value.SNAPSHOTID') || echo "Error deleting snapshot named: ${SNAPSHOT_NAME}"
  9. else
  10. echo "Deleting snapshot: ${SNAPSHOTID}"
  11. ${VCURL} snapshot/destroy -X POST -d "SNAPSHOTID=${SNAPSHOTID}" || echo "Error deleting snapshot: ${SNAPSHOTID}"
  12. fi