Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Add version function and command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed Nov 24, 2019
1 parent 3ffcdf1 commit 3c7a62d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Lockdown
Expand Up @@ -57,6 +57,7 @@ function usage {
# debug
# full_disk_access_check
# statistics
# version


function macos_compatability_check {
Expand Down Expand Up @@ -405,6 +406,11 @@ function statistics {
}


function version {
echo "${LOCKDOWN_VERSION}"
}


### END UTILITY FUNCTIONS ###


Expand Down Expand Up @@ -952,6 +958,10 @@ function main {
usage|help|-h|--help|🤷‍♂️|🤷‍♀️)
usage
;;

version|-v|--version)
version
;;

*)
echo -e "\\n [❌] ${RED}Invalid command:${RESET} ${cmd}"
Expand Down

0 comments on commit 3c7a62d

Please sign in to comment.