nixpkgs/nixos/maintainers/scripts/azure-new/common.sh

8 lines
230 B
Bash
Raw Normal View History

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//[._]/-}"