reduced more error messages

This commit is contained in:
Niels Lippke 2021-10-19 13:48:34 +02:00
parent 8ab72c2b44
commit 92566cbb4d

View File

@ -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