Commit e1b70e82 authored by anonym's avatar anonym

Do not try to read non-existent files in tails-debugging-info.

parent e99c11f5
......@@ -14,9 +14,11 @@ debug_file() {
user="${1}"
shift
fi
file="${1}"
[ ! -e "${file}" ] && return
echo
echo "===== content of $1 ====="
sudo -u "${user}" -- cat "${1}"
sudo -u "${user}" -- cat "${file}"
}
debug_command /usr/sbin/dmidecode -s system-manufacturer
......
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