From: Paul Hänsch Date: Sun, 15 Jul 2018 15:28:50 +0000 (+0200) Subject: suppress error message from mkdir X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=813580b4cdebfe5161ef01bcbd126405c3162d7a;p=cgilite suppress error message from mkdir --- 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