mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Add a version in 'pivpn -v'
This commit is contained in:
parent
3d4a005067
commit
0c7905dc3c
1 changed files with 5 additions and 0 deletions
5
pivpn
5
pivpn
|
@ -40,6 +40,10 @@ function uninstallFunc {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function versionFunc {
|
||||||
|
printf "\e[1mVersion 1.0\e[0m\n"
|
||||||
|
}
|
||||||
|
|
||||||
function helpFunc {
|
function helpFunc {
|
||||||
echo "::: Control all PiVPN specific functions!"
|
echo "::: Control all PiVPN specific functions!"
|
||||||
echo ":::"
|
echo ":::"
|
||||||
|
@ -67,5 +71,6 @@ case "$1" in
|
||||||
"-r" | "revoke" ) removeOVPNFunc;;
|
"-r" | "revoke" ) removeOVPNFunc;;
|
||||||
"-h" | "help" ) helpFunc;;
|
"-h" | "help" ) helpFunc;;
|
||||||
"-u" | "uninstall" ) uninstallFunc;;
|
"-u" | "uninstall" ) uninstallFunc;;
|
||||||
|
"-v" ) versionFunc;;
|
||||||
* ) helpFunc;;
|
* ) helpFunc;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue