Skip to content

Commit

Permalink
fix: Version print issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marverix committed Dec 4, 2024
1 parent afddf85 commit be612f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gah
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ function get_known_alias() {

function command_help() {
echo "gah"
echo " install <owner/repo_name | known_alias> [<VERSION>]"
echo " install <github_owner/github_repo_name | known_alias> [<git_tag>]"
echo " show <aliases>"
echo " help"
echo " VERSION"
echo " version"
exit 0
}

function command_version() {
echo $VERSION
echo "gah v$VERSION"
exit 0
}

Expand Down Expand Up @@ -316,7 +316,7 @@ function main() {
if [[ -z "$1" || "$1" == "help" ]]; then
command_help

elif [[ "$1" == "VERSION" ]]; then
elif [[ "$1" == "version" ]]; then
command_version

elif [[ "$1" == "install" ]]; then
Expand Down

0 comments on commit be612f0

Please sign in to comment.