Verified Commit da461fa3 authored by Aral Balkan's avatar Aral Balkan
Browse files

Add down & disconnected as aliases for off; update header

parent d4a1c27e
......@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.3.0] - 2020-05-04
### Added
- Aliases for `off` option: `down` and `disconnect`.
- Funding message to the help screen.
### Changed
- Header: now displays with a solid background colour. Updated colours for greater contrast while still matching the AzireVPN palette.
## [1.2.0] - 2020-05-03
### Added
......
......@@ -77,6 +77,8 @@ Sample output:
✅ Done.
```
(You can also use the aliases `down` and `disconnect` if you prefer.)
### Get connection status
```sh
......
......@@ -2,7 +2,7 @@
set -e
version='1.2.0'
version='1.3.0'
# AzireVPN uses purples; so shall we :)
darkPurple='\e[38;5;61m'
......
......@@ -2,7 +2,7 @@
set -e
version='1.2.0'
version='1.3.0'
# AzireVPN uses purples; so shall we :)
darkPurple='\e[38;5;61m'
......
......@@ -13,17 +13,19 @@
set -e
version='1.2.0'
version='1.3.0'
# AzireVPN uses purples; so shall we :)
darkPurple='\e[38;5;61m'
lightPurple='\e[38;5;134m'
colorEnd='\e[0m'
darkPurpleBackground='\e[48;5;54m'
lightPurpleForeground='\e[38;5;177m'
padding=' '
lineStart="${padding}${darkPurpleBackground}${lightPurpleForeground}"
lineEnd='\e[0m'
echo
echo -e " ${darkPurple}╔═══════════════════════════════════════════╗${colorEnd}"
echo -e " ${darkPurple}${colorEnd}${lightPurple} vpn v${version} ­– AzireVPN Wireguard interface ${colorEnd}${darkPurple}${colorEnd}"
echo -e " ${darkPurple}╚═══════════════════════════════════════════╝${colorEnd}"
echo -e "${lineStart} ${lineEnd}"
echo -e "${lineStart} vpn v${version} ­– AzireVPN Wireguard interface ${lineEnd}"
echo -e "${lineStart} ${lineEnd}"
echo
action='up'
......@@ -79,7 +81,13 @@ if [[ $1 == 'help' || $1 == 'h' || $1 == '--help' || $1 == '-h' || $1 == '--help
echo -e "${output}" | column -t -s ===
echo
displayLocations
echo
echo "${padding}╔═══════════════════════════════════════════╗"
echo "${padding}║ Like this? Fund us! ║"
echo "${padding}║ ║"
echo "${padding}║ We’re a tiny, independent not-for-profit. ║"
echo "${padding}║ https://small-tech.org/fund-us ║"
echo "${padding}╚═══════════════════════════════════════════╝"
exit 0
fi
......@@ -98,7 +106,7 @@ if [[ $1 == 'ls' ]]; then
exit 0
fi
if [[ $1 == 'off' ]]; then
if [[ $1 == 'off' || $1 == 'down' || $1 == 'disconnect' ]]; then
action='down'
if [[ $currentConnection == '' ]]; then
echo -e " ❌ You are not connected to AzireVPN via Wireguard.\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment