nixpkgs/nixos/maintainers/scripts/azure-new/common.sh
2020-03-29 13:56:55 -07:00

8 lines
230 B
Bash

export group="${AZURE_RESOURCE_GROUP:-"azure"}"
export location="${AZURE_LOCATION:-"westus2"}"
img_file=$(echo azure/*.vhd)
img_name="$(basename "${img_file}")"
img_name="${img_name%".vhd"}"
export img_name="${img_name//[._]/-}"