From 5bb49393c55dd96bcaf7df84d029e5f7201363f5 Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis <9477868+iridakos@users.noreply.github.com> Date: Sun, 15 Nov 2020 10:27:34 +0200 Subject: [PATCH] Update goto.sh --- goto.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goto.sh b/goto.sh index 7dd61f3..0786500 100644 --- a/goto.sh +++ b/goto.sh @@ -272,7 +272,7 @@ _goto_cleanup() # Changes to the given alias' directory _goto_directory() { - # directly goto the special name that unable register, eg: ~ + # directly goto the special name that is unable to be registered due to invalid alias, eg: ~ if ! [[ $1 =~ ^[[:alnum:]]+[a-zA-Z0-9_-]*$ ]]; then { builtin cd "$1" 2> /dev/null && return 0; } || \ { _goto_error "Failed to goto '$1'" && return 1; }