Commit 7f82c158 authored by anonym's avatar anonym
Browse files

Make _get_tg_setting() compatible with set -u.

Will-fix: #10785
parent de9c225d
......@@ -6,7 +6,7 @@ PHYSICAL_SECURITY_SETTINGS='/var/lib/live/config/tails.physical_security'
_get_tg_setting() {
if [ -r "${1}" ]; then
. "${1}"
eval "echo \$${2}"
eval "echo \${${2}:-}"
fi
}
......
Supports Markdown
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