From a22579f9d08addc10334a29fe756ff112353c606 Mon Sep 17 00:00:00 2001 From: fanta Date: Sun, 21 Feb 2021 09:37:12 +0100 Subject: [PATCH] =?UTF-8?q?peque=C3=B1o=20arreglo=20para=20que=20abra=20el?= =?UTF-8?q?=20editor=20tambien=20cuando=20ya=20existe=20el=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- n | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/n b/n index 4e9f1cf..cf852cc 100755 --- a/n +++ b/n @@ -13,4 +13,5 @@ check_tag(){ tagName="$1" ; [[ "$tagName" = "${tagName%[[:space:]]*}" ]] && echo check_root ; create_nDir [[ $# -eq 0 ]] && get_tagListRecentUseOrder [[ $# -eq 1 ]] && [[ $(check_tag "$1") -eq 1 ]] && echo "bad tag name . Please try again without spaces." && exit -[[ $# -eq 1 ]] && create_tag "$nDir" "$1" && $editor $nDir/$1 +[[ $# -eq 1 ]] && create_tag "$nDir" "$1" +[[ $# -eq 1 ]] && $editor $nDir/$1