This website works better with JavaScript.
Home
Explore
Help
Sign In
bubblev
/
bubble
Watch
9
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
130
Wiki
Activity
Browse Source
update bget utilities, add vultr_list_instance_labels
tags/v0.15.1
Jonathan Cobb
4 years ago
parent
aef7d70a01
commit
78ff3edd11
5 changed files
with
17 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
bin/bgeti
+2
-2
bin/bgeti1
+2
-2
bin/bgetn
+2
-2
bin/bgetn1
+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'
Write
Preview
Loading…
Cancel
Save