From 66682aee6090613bdbfb373413763614bbb5d64b Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 27 Sep 2020 22:38:15 +0200 Subject: [PATCH] Replaced exit to return to not exit shell on Usage print --- images2pdf.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images2pdf.plugin.zsh b/images2pdf.plugin.zsh index 78d902d..d7a4823 100644 --- a/images2pdf.plugin.zsh +++ b/images2pdf.plugin.zsh @@ -4,7 +4,7 @@ function images2pdf() { if [ -z "$3" ]; then echo "Usage: images2pdf …" >&2; echo " lang: languages separated by + characterized by 3 characters, example: deu+eng" >&2; - exit 2; + return 2; fi convert "${@:3}" pdf:- | ocrmypdf -l "$1" - "$2"; }