mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
completion: Drop some unused variables
Spotted by shellcheck. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
7ad93a0c95
commit
17f0cad2c7
@ -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")"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user