provisioning/providers/upcloud/bin/get_plans.sh
2025-09-22 23:11:41 +01:00

5 lines
219 B
Bash
Executable File

#!/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"