diff --git a/include/dts-functions.sh b/include/dts-functions.sh index 73b4637..a5e57de 100644 --- a/include/dts-functions.sh +++ b/include/dts-functions.sh @@ -42,11 +42,6 @@ clear_line() { printf '\r\033[K' } -# Prints and empty line -print_new_line() { - echo "" -} - # Draws a simple progress bar # Example usage: draw_progress_bar "$((++TASK_NO))" "$TOTAL_TASKS" draw_progress_bar() { diff --git a/include/dts-subscription.sh b/include/dts-subscription.sh index 0213936..59fc7c7 100644 --- a/include/dts-subscription.sh +++ b/include/dts-subscription.sh @@ -108,10 +108,7 @@ clean_dpp_creds() { } get_dpp_creds() { - print_new_line - read -p "Enter DPP email: " DPP_EMAIL - print_new_line if [[ -z "$DPP_EMAIL" ]]; then print_warning "Email cannot be empty, aborting." return 1 @@ -122,7 +119,6 @@ get_dpp_creds() { fi read -p "Enter password: " DPP_PASSWORD - print_new_line if [[ -z "$DPP_PASSWORD" ]]; then print_warning "Password cannot be empty, aborting." return 1 @@ -141,17 +137,6 @@ get_dpp_creds() { return 0 } -login_to_dpp_server() { - # Check if the user is already logged in, log in if not. - if [ "$(mc alias ls "$DPP_SERVER_USER_ALIAS" --json | jq -r .accessKey)" = "null" ]; then - if ! mc alias set $DPP_SERVER_USER_ALIAS $DPP_SERVER_ADDRESS $DPP_EMAIL $DPP_PASSWORD >/dev/null 2>>"$ERR_LOG_FILE"; then - return 1 - fi - fi - - return 0 -} - login_to_dpp_server() { # Capture the access key local access_key