From 813580b4cdebfe5161ef01bcbd126405c3162d7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 15 Jul 2018 17:28:50 +0200 Subject: [PATCH] suppress error message from mkdir --- storage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.sh b/storage.sh index 8939fdc..f5a0ac6 100755 --- a/storage.sh +++ b/storage.sh @@ -28,7 +28,7 @@ LOCK(){ return 1 fi - while ! mkdir "$lock"; do + while ! mkdir "$lock" 2>&-; do block="$(cat "$lock/pid" || printf 1)" if ! { ps -eo pid |grep -qwF "$block"; }; then printf 'Overriding stale lock: %s\n' "$lock" >&2 -- 2.39.2