Source: ubuntu-keyring
Version: 2018.09.18.1-4
Severity: normal

Dear Maintainer,

I noticed ShellCheck was raising an error in debian/*.postinst scripts.

    if [ -n "$RET" ]; then
->    for keyring in "$RET"
      do
        rm -f /etc/apt/trusted.gpg.d/"$keyring".gpg
        ln -sf /usr/share/keyrings/"$keyring".gpg /etc/apt/trusted.gpg.d/
      done
    fi

The error at pointed arrow is:

> SC2066: Since you double quoted this, it will not word split, and the
> loop will only run once.

I believe this means only one key will be ever installed from debconf
template choice, if multiple answers are given from the multiselect
templates. Removing double quotes should fix the issue.

See: https://github.com/koalaman/shellcheck/wiki/SC2066


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to