provisioning/providers/upcloud/bin/get_plans.sh

5 lines
219 B
Bash
Raw Permalink Normal View History

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