From bc8f437ef812336397cc9f9322974272981aeff9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 7 Jan 2011 13:59:48 +0000 Subject: lbu: hide error message when testing for read-only --- lbu.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbu.in b/lbu.in index a0dfe16..70ce6b9 100644 --- a/lbu.in +++ b/lbu.in @@ -80,7 +80,7 @@ mount_once() { # check if given dir is read-only is_ro() { - local tmpfile=$(mktemp -p "$1") + local tmpfile=$(mktemp -p "$1" 2>/dev/null) [ -z "$tmpfile" ] && return 0 rm -f "$tmpfile" return 1 -- cgit v1.2.3