provisioning/providers/upcloud/bin/get_zones.sh

5 lines
212 B
Bash
Raw Normal View History

#!/bin/bash
[ -z "$1" ] && echo "no prefix zone found !!
All zones can be display with: upctl zone list" && exit 1
upctl zone list | grep $1 | awk '{ print $1}' | sed 's/^/\| "/g' | sed 's/$/"/g' | tr -d "\n"