From e00f9befa606a95b8c6f28cd52e5574f0a42c9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Sieroci=C5=84ski?= Date: Thu, 12 Dec 2024 13:09:19 +0100 Subject: [PATCH] fix: Condition to check is alias in db --- gah | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gah b/gah index 62f057c..b80fb44 100755 --- a/gah +++ b/gah @@ -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" @@ -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