63 lines
1.0 KiB
Bash
Executable File
63 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
|
|
main_menu(){
|
|
PS3="Enter a number: "
|
|
select bill in Electric Gas Internet Water
|
|
do
|
|
|
|
case "${REPLY}" in
|
|
1) xdg-open "https://aps.com"
|
|
;;
|
|
|
|
2) xdg-open "https://uesaz.com"
|
|
;;
|
|
|
|
3) xdg-open "https://customer.sparklight.com/securelogin/login.aspx"
|
|
;;
|
|
|
|
4) xdg-open "https://xpressbillpay.com/"
|
|
;;
|
|
|
|
q) exit 0
|
|
;;
|
|
|
|
*) echo "Please choose an existing option"
|
|
;;
|
|
|
|
esac
|
|
done
|
|
}
|
|
|
|
|
|
case "${1}" in
|
|
|
|
-e) xdg-open "https://aps.com"
|
|
;;
|
|
|
|
-g) xdg-open "https://uesaz.com"
|
|
;;
|
|
|
|
-i) xdg-open "https://customer.sparklight.com/securelogin/login.aspx"
|
|
;;
|
|
|
|
-w) xdg-open "https://xpressbillpay.com/"
|
|
;;
|
|
|
|
-h|--help|help)
|
|
|
|
echo """
|
|
$0 [-e] [-g] [-i] [-w]
|
|
|
|
-e Electric bill
|
|
-g Gas bill
|
|
-i Internet bill
|
|
-w Water bill
|
|
"""
|
|
;;
|
|
|
|
*) main_menu
|
|
;;
|
|
|
|
esac |