From e966da5e7f2cba74cd6c2ee382d324fec7a139ff Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 15 Feb 2022 15:41:34 +0800 Subject: bugscript: quote config file names The file names could contain spaces and without quoting, the files would not be found and included in the bug reports. Suggested-by: shellcheck --- debian/apt.bug-script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/apt.bug-script b/debian/apt.bug-script index eae54fe69..1e895fb1f 100755 --- a/debian/apt.bug-script +++ b/debian/apt.bug-script @@ -15,11 +15,11 @@ if [ "$REPLY" = "yep" ]; then fi for config in /etc/apt/preferences /etc/apt/preferences.d/* /etc/apt/sources.list /etc/apt/sources.list.d/* ; do - if [ -f $config ]; then + if [ -f "$config" ]; then yesno "May I include your $config configuration file? [Y/n] " yep if [ "$REPLY" = "yep" ]; then echo -e "\n-- $config --\n" >&3 - cat $config >&3 + cat "$config" >&3 else echo -e "\n-- ($config present, but not submitted) --\n" >&3 fi -- cgit v1.2.3-70-g09d2