The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

do_delete_image.sh 663 B

1234567891011121314151617
  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