From c2bf32ed4f2fcc1d838649dceda1a587eb8a0cec Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Fri, 9 Dec 2022 09:16:28 +0100 Subject: [PATCH] Update 2022-12-09 09:16 OpenBSD/amd64 --- .bin/documents-next | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bin/documents-next b/.bin/documents-next index e613e1c..516218e 100755 --- a/.bin/documents-next +++ b/.bin/documents-next @@ -4,6 +4,13 @@ cd ${PIMDIR}/documents _doc=$(ls -1 _incoming | head -1) + +if [ -z "$_doc" ] +then + echo "Nothing left... wohooo!" + exit 0 +fi + pdfarranger "_incoming/${_doc}" > /dev/null 2>&1 & echo "Here is: ${_doc}" echo "Shall we move it to _done?"