completion: Drop some unused variables

Spotted by shellcheck.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-04-16 14:08:08 +01:00
parent 7ad93a0c95
commit 17f0cad2c7
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73
2 changed files with 3 additions and 4 deletions

View File

@ -68,8 +68,8 @@ __gio_location() {
# List files
local files=()
local names=()
local name size type
while IFS=$'\t' read -r name size type; do
local name type
while IFS=$'\t' read -r name _ type; do
# Escape name properly
local escaped_name
escaped_name="$(printf "%q" "$name")"

View File

@ -7,11 +7,10 @@
####################################################################################################
__gresource() {
local choices coffset section
local choices coffset
if [ "${COMP_CWORD}" -gt 2 ]; then
if [ "${COMP_WORDS[1]}" = --section ]; then
section=${COMP_WORDS[2]}
coffset=2
else
coffset=0