Skip to content

Commit e1018a5

Browse files
committed
Handle shellcheck warnings
1 parent 7e368f8 commit e1018a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gi-completion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ _gi_autocomplete_subcommand_argument()
6969
# Store the matching issues along with their description
7070
gi_list+=($(printf '%*s' "-$COLUMNS" "$cmd - ${desc[1]}"))
7171
fi
72-
done <<< "$(git issue list $list_args 2>/dev/null)"
72+
done <<< "$(git issue list "$list_args" 2>/dev/null)"
7373

7474
if [[ ${#gi_list[@]} == 1 ]]; then
7575
# If only one match, autocomplete the sha without the description

lib/git-issue/import-export.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ rest_api_send()
136136
trans_abort
137137
fi
138138

139+
# shellcheck disable=SC2086 (unquoted curl_mode won't glob)
139140
if ! curl --header "Content-Type: application/json" -H "$authtoken" -A "$USER_AGENT" -s \
140141
-o "$prefix-body" -D "$prefix-header" $curl_mode --data "$data" "$url" ; then
141142
echo 'GitHub connection failed' 1>&2

0 commit comments

Comments
 (0)