Browse Source

update bget utilities, add vultr_list_instance_labels

tags/v0.15.1
Jonathan Cobb 4 years ago
parent
commit
78ff3edd11
5 changed files with 17 additions and 8 deletions
  1. +2
    -2
      bin/bgeti
  2. +2
    -2
      bin/bgeti1
  3. +2
    -2
      bin/bgetn
  4. +2
    -2
      bin/bgetn1
  5. +9
    -0
      bin/vultr/vultr_list_instance_labels.sh

+ 2
- 2
bin/bgeti View File

@@ -33,6 +33,6 @@ if [[ ${JSON} = \{* ]] ; then
elif [[ "${JSON}" = \[* ]] ; then
echo "${JSON}" | jq -r .[].uuid
else
echo "not sure what to do with JSON:"
echo "${JSON}"
die "Invalid JSON received:
${JSON}"
fi

+ 2
- 2
bin/bgeti1 View File

@@ -33,6 +33,6 @@ if [[ ${JSON} = \{* ]] ; then
elif [[ "${JSON}" = \[* ]] ; then
echo "${JSON}" | jq -r .[].uuid | head -1
else
echo "not sure what to do with JSON:"
echo "${JSON}"
die "Invalid JSON received:
${JSON}"
fi

+ 2
- 2
bin/bgetn View File

@@ -33,6 +33,6 @@ if [[ ${JSON} = \{* ]] ; then
elif [[ "${JSON}" = \[* ]] ; then
echo "${JSON}" | jq -r .[].name
else
echo "not sure what to do with JSON:"
echo "${JSON}"
die "Invalid JSON received:
${JSON}"
fi

+ 2
- 2
bin/bgetn1 View File

@@ -33,6 +33,6 @@ if [[ ${JSON} = \{* ]] ; then
elif [[ "${JSON}" = \[* ]] ; then
echo "${JSON}" | jq -r .[].name | head -1
else
echo "not sure what to do with JSON:"
echo "${JSON}"
die "Invalid JSON received:
${JSON}"
fi

+ 9
- 0
bin/vultr/vultr_list_instance_labels.sh View File

@@ -0,0 +1,9 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl
LABEL=${1}

${VCURL} server/list | jq -r '.[].label'

Loading…
Cancel
Save