Add version flag

This commit is contained in:
lw-everestlinux 2022-10-11 10:38:31 -04:00
parent 5afddf1a8a
commit bee57f10ad

View File

@ -63,14 +63,14 @@ while [[ $# -gt 0 ]]; do
printf "$green service $2 restarted successfully $reset \n"
exit 1
;;
*)
printf "$red invalid option specifieid, see 'esv --help' $reset \n"
exit 1
;;
-v|--version)
printf "$blue esv v1.0.0 $reset \n"
exit 0
;;
*)
printf "$red invalid option specifieid, see 'esv --help' $reset \n"
exit 1
;;
esac
done