From 0c7905dc3c6ee3f9b1b992fd6f533da636ff879e Mon Sep 17 00:00:00 2001 From: Kaladin Light <0.kaladin@gmail.com> Date: Wed, 20 Apr 2016 19:16:39 -0400 Subject: [PATCH] Add a version in 'pivpn -v' --- pivpn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pivpn b/pivpn index 752ec04..3fded0a 100644 --- a/pivpn +++ b/pivpn @@ -40,6 +40,10 @@ function uninstallFunc { exit 1 } +function versionFunc { + printf "\e[1mVersion 1.0\e[0m\n" +} + function helpFunc { echo "::: Control all PiVPN specific functions!" echo ":::" @@ -67,5 +71,6 @@ case "$1" in "-r" | "revoke" ) removeOVPNFunc;; "-h" | "help" ) helpFunc;; "-u" | "uninstall" ) uninstallFunc;; +"-v" ) versionFunc;; * ) helpFunc;; esac