From df1313d20a5f0337981d99a0c3ce908886f7fd13 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 9 Feb 2023 14:05:10 +0300 Subject: [PATCH] Do not try to do anything if no argument is specified --- torn.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/torn.zsh b/torn.zsh index fe45db9..700d33b 100755 --- a/torn.zsh +++ b/torn.zsh @@ -62,6 +62,7 @@ tornm() { print -- $n } +[[ -n $1 ]] || exit local n=${1:t} n=`tornm $n` n=`tornt $n` -- 2.44.0