Commit af1bd9e2 authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

Add version command

parent bf065577
......@@ -5,6 +5,7 @@ set -eu
# protect cache files from other users
umask 0077
VERSION='0.1-alpha'
SCRIPTNAME=${0##*/}
USAGE="USAGE
General syntax:
......@@ -22,6 +23,9 @@ USAGE="USAGE
$SCRIPTNAME help
Print this message end exits
$SCRIPTNAME version
Print script version and exits
$SCRIPTNAME serial-number
Print serial number of the device
......@@ -450,6 +454,10 @@ main() {
echo "$USAGE"
;;
'version')
echo "$VERSION"
;;
'clear'|'clear-cache'|'cache-clear')
# cache init set CRYPTO_WRAPPER_ROOT variable
cache_init
......
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