]> Sergey Matveev's repositories - torn.git/commitdiff
Do not try to do anything if no argument is specified
authorSergey Matveev <stargrave@stargrave.org>
Thu, 9 Feb 2023 11:05:10 +0000 (14:05 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 9 Feb 2023 11:16:36 +0000 (14:16 +0300)
torn.zsh

index fe45db94259bec0f5a692cd76c68956a5a384553..700d33b4f666e3041726e8d804329e7558fd5c04 100755 (executable)
--- 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`