diff options
author | Paul Wise <pabs@debian.org> | 2022-02-15 15:41:34 +0800 |
---|---|---|
committer | Paul Wise <pabs@debian.org> | 2022-02-15 15:54:37 +0800 |
commit | e966da5e7f2cba74cd6c2ee382d324fec7a139ff (patch) | |
tree | 99cf85363df8c5673427391e14899ea2fc4e146a /debian | |
parent | 888775bfd9143aabade6979d6efe5420ee0265cf (diff) |
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
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/apt.bug-script | 4 |
1 files 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 |