reduced more error messages
This commit is contained in:
parent
8ab72c2b44
commit
92566cbb4d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user