Skip to content

Commit

Permalink
Add --version flag to script
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Mar 24, 2020
1 parent 4d3f536 commit aa717e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wireguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ WIREGUARD_REPO=FossoresLP/vyatta-wireguard
# https://github.com/Lochnair/vyatta-wireguard/issues/140#issuecomment-587031573
# WIREGUARD_REPO=Lochnair/vyatta-wireguard

WIREGUARD_INSTALLER_VERSION=1.0.0

declare -A SUPPORTED_BOARDS
SUPPORTED_BOARDS=(
[e50]=e50 # ER-X (EdgeRouter X)
Expand Down Expand Up @@ -303,6 +305,10 @@ case $1 in
-h | --help | help)
usage
;;
--version)
echo "vyatta-wireguard-installer v${WIREGUARD_INSTALLER_VERSION}"
exit 0
;;
install)
run_install "$@"
;;
Expand Down

0 comments on commit aa717e5

Please sign in to comment.