Skip to content
Snippets Groups Projects
Commit 47de3eb3 authored by Steve McIntyre's avatar Steve McIntyre
Browse files

Make config_item() more robust

parent 43786f05
No related merge requests found
grub2 (2.06-9) UNRELEASED; urgency=medium
[ Steve McIntyre ]
* postinst: make config_item() more robust
-- Steve McIntyre <93sam@debian.org> Thu, 23 Feb 2023 22:30:32 +0000
grub2 (2.06-8.1) experimental; urgency=medium grub2 (2.06-8.1) experimental; urgency=medium
* Non-maintainer upload. * Non-maintainer upload.
......
...@@ -301,7 +301,9 @@ config_item() ...@@ -301,7 +301,9 @@ config_item()
{ {
for x in /etc/default/grub /etc/default/grub.d/*.cfg; do for x in /etc/default/grub /etc/default/grub.d/*.cfg; do
if [ -e "$x" ]; then if [ -e "$x" ]; then
. "$x" # Lose any output here so we don't confuse our
# caller. The xen packages echo stuff here, Aargh!
. "$x" > /dev/null
fi fi
done done
if [ "$(eval echo "\${$1+set}")" = set ]; then if [ "$(eval echo "\${$1+set}")" = set ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment