Skip to content

Commit f78c6e9

Browse files
committed
- Fix shellcheck unused variable on other_args in production
1 parent 16568b7 commit f78c6e9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lib/bashly/views/command/run.gtx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,34 @@
22

33
> run() {
44
> declare -g -A args=()
5+
unless Settings.enabled? :inspect_args
6+
> # shellcheck disable=SC2034
7+
end
8+
> declare -g -a other_args=()
9+
510
if Settings.enabled? :deps_array
611
> declare -g -A deps=()
712
end
8-
> declare -g -a other_args=()
13+
914
if Settings.enabled? :env_var_names_array
1015
> declare -g -a env_var_names=()
1116
end
17+
1218
> declare -g -a input=()
19+
1320
if has_unique_args_or_flags?
1421
> declare -g -A unique_lookup=()
1522
end
23+
1624
> normalize_input "$@"
1725
> parse_requirements "${input[@]}"
26+
1827
if user_file_exist?('before')
1928
> before_hook
2029
end
30+
2131
>
2232
> case "$action" in
23-
2433
deep_commands.each do |command|
2534
> "{{ command.action_name }}") {{ command.function_name }}_command ;;
2635
end

0 commit comments

Comments
 (0)