diff --git a/include/dts-subscription.sh b/include/dts-subscription.sh index 1f8a16b8..b5b6239b 100644 --- a/include/dts-subscription.sh +++ b/include/dts-subscription.sh @@ -107,6 +107,16 @@ get_dpp_creds() { echo "" read -p "Enter password: " 'DPP_PASSWORD' + if [[ -z "${DPP_EMAIL}" ]]; then + print_warning "No email address was provided." + return 1 + fi + + if [[ -z "${DPP_PASSWORD}" ]]; then + print_warning "No password was provided." + return 1 + fi + # Export DPP creds to a file for future use. Currently these are being used # for both: MinIO (and its mc CLI) and cloudsend (deprecated, all DPP # sibscribtions will be megrated to MinIO):