From 777ce925d8b72c31e96fc031410fa664ea09a8f5 Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 8 Oct 2020 22:59:39 -0700 Subject: [PATCH] billpay.sh: put urls in variables --- billpay.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/billpay.sh b/billpay.sh index c12857f..8c92639 100755 --- a/billpay.sh +++ b/billpay.sh @@ -1,6 +1,9 @@ #!/bin/bash - +electricBill="https://login.auth.aps.com/apsprodb2c.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1a_aps_paassitecoresignin&response_type=code&client_id=874546d6-0a39-4299-b663-68cd9346f21f&redirect_uri=https://www.aps.com/authorization/loginredirect&scope=https://APSPRODB2C.onmicrosoft.com/APSBusinessAPI/user_impersonation%20offline_access%20openid&nonce=f0984d65-2e3a-479c-9bdb-3ad6ca7ef21c&response_mode=form_post&resource=%20https%3A%2F%2FAPSPRODB2C.onmicrosoft.com%2FAPSBusinessAPI" +gasBill="https://uesaz.com" +internetBill="https://customer.sparklight.com/securelogin/login.aspx" +waterBill="https://xpressbillpay.com/" main_menu(){ PS3="Enter a number: " @@ -8,16 +11,16 @@ main_menu(){ do case "${REPLY}" in - 1) xdg-open "https://login.auth.aps.com/apsprodb2c.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1a_aps_paassitecoresignin&response_type=code&client_id=874546d6-0a39-4299-b663-68cd9346f21f&redirect_uri=https://www.aps.com/authorization/loginredirect&scope=https://APSPRODB2C.onmicrosoft.com/APSBusinessAPI/user_impersonation%20offline_access%20openid&nonce=f0984d65-2e3a-479c-9bdb-3ad6ca7ef21c&response_mode=form_post&resource=%20https%3A%2F%2FAPSPRODB2C.onmicrosoft.com%2FAPSBusinessAPI" + 1) xdg-open "${electricBill}" ;; - 2) xdg-open "https://uesaz.com" + 2) xdg-open "${gasBill}" ;; - 3) xdg-open "https://customer.sparklight.com/securelogin/login.aspx" + 3) xdg-open "${internetBill}" ;; - 4) xdg-open "https://xpressbillpay.com/" + 4) xdg-open "${waterBill}" ;; q) exit 0 @@ -33,16 +36,16 @@ main_menu(){ case "${1}" in - -e) xdg-open "https://login.auth.aps.com/apsprodb2c.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1a_aps_paassitecoresignin&response_type=code&client_id=874546d6-0a39-4299-b663-68cd9346f21f&redirect_uri=https://www.aps.com/authorization/loginredirect&scope=https://APSPRODB2C.onmicrosoft.com/APSBusinessAPI/user_impersonation%20offline_access%20openid&nonce=f0984d65-2e3a-479c-9bdb-3ad6ca7ef21c&response_mode=form_post&resource=%20https%3A%2F%2FAPSPRODB2C.onmicrosoft.com%2FAPSBusinessAPIss" + -e) xdg-open "${electricBill}" ;; - -g) xdg-open "https://uesaz.com" + -g) xdg-open "${gasBill}" ;; - -i) xdg-open "https://customer.sparklight.com/securelogin/login.aspx" + -i) xdg-open "${internetBill}" ;; - -w) xdg-open "https://xpressbillpay.com/" + -w) xdg-open "${waterBill}" ;; -h|--help|help)