From 92566cbb4dd98fc814bfb9cc8cc33c21c2e09dfa Mon Sep 17 00:00:00 2001 From: Niels Lippke Date: Tue, 19 Oct 2021 13:48:34 +0200 Subject: [PATCH] reduced more error messages --- sources/ocrmypdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/ocrmypdf.sh b/sources/ocrmypdf.sh index 1c02508..fead8bd 100755 --- a/sources/ocrmypdf.sh +++ b/sources/ocrmypdf.sh @@ -18,7 +18,7 @@ do sleep 5 done -if ( set -o noclobber; echo "locked" > "$lockfile" ); then +if ( set -o noclobber; echo "locked" > "$lockfile" ) 2> /dev/null; then trap 'rm -f "$lockfile"; exit $?' INT TERM KILL EXIT else exit 1