The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 regels
663 B

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. IMAGEID=${1:?no IMAGEID provided}
  6. THISDIR=$(cd $(dirname ${0}) && pwd)
  7. DOCURL=${THISDIR}/docurl
  8. if [[ ${IMAGEID} == "-n" ]] ; then
  9. IMAGE_NAME=${2:?no image name provided}
  10. echo "Deleting image named: ${IMAGE_NAME}"
  11. ${0} $(${DOCURL} "images?private=true" | jq -r '.images[] | select(.name=="'${IMAGE_NAME}'") | .id') || echo "Error deleting image named: ${IMAGE_NAME}"
  12. else
  13. echo "Deleting image: ${IMAGEID}"
  14. ${DOCURL} images/${IMAGEID} -X DELETE || echo "Error deleting image: ${IMAGEID}"
  15. fi