From: Sergey Matveev Date: Thu, 9 Feb 2023 11:05:10 +0000 (+0300) Subject: Do not try to do anything if no argument is specified X-Git-Url: http://www.git.stargrave.org/?p=torn.git;a=commitdiff_plain;h=df1313d20a5f0337981d99a0c3ce908886f7fd13 Do not try to do anything if no argument is specified --- 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`