mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +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
|
# List files
|
||||||
local files=()
|
local files=()
|
||||||
local names=()
|
local names=()
|
||||||
local name size type
|
local name type
|
||||||
while IFS=$'\t' read -r name size type; do
|
while IFS=$'\t' read -r name _ type; do
|
||||||
# Escape name properly
|
# Escape name properly
|
||||||
local escaped_name
|
local escaped_name
|
||||||
escaped_name="$(printf "%q" "$name")"
|
escaped_name="$(printf "%q" "$name")"
|
||||||
|
@ -7,11 +7,10 @@
|
|||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
__gresource() {
|
__gresource() {
|
||||||
local choices coffset section
|
local choices coffset
|
||||||
|
|
||||||
if [ "${COMP_CWORD}" -gt 2 ]; then
|
if [ "${COMP_CWORD}" -gt 2 ]; then
|
||||||
if [ "${COMP_WORDS[1]}" = --section ]; then
|
if [ "${COMP_WORDS[1]}" = --section ]; then
|
||||||
section=${COMP_WORDS[2]}
|
|
||||||
coffset=2
|
coffset=2
|
||||||
else
|
else
|
||||||
coffset=0
|
coffset=0
|
||||||
|
Loading…
Reference in New Issue
Block a user