Commit bc8f437e authored by Natanael Copa's avatar Natanael Copa

lbu: hide error message when testing for read-only

parent fbf88823
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment