Skip to content

Commit

Permalink
fix: Condition to check is alias in db
Browse files Browse the repository at this point in the history
  • Loading branch information
marverix committed Dec 12, 2024
1 parent b2d6922 commit e00f9be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gah
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -e
#--------------------------------------------------
#region Constants

VERSION="0.2.0"
VERSION="0.2.1"
HELP_STRING="Type 'gah help' to show help."

GAH_CACHE_DIR="$HOME/.cache/gah"
Expand Down Expand Up @@ -330,7 +330,7 @@ function main() {
throw_error 2 "Given string '$2' is not in format 'owner/repo_name'.\n$HELP_STRING"
fi

elif [[ "$(get_known_alias $2)" ]]; then
elif [[ "$(get_known_alias $2)" != "null" ]]; then
repo="$(get_known_alias $2)"

else
Expand Down

0 comments on commit e00f9be

Please sign in to comment.