Skip to content

Commit

Permalink
fix(lint): fixing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasz8 committed Oct 29, 2024
1 parent 0c97d6e commit a1f5dd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ parse_options() {
# Prepare known options
for option in "${options[@]}"; do
option_var=${option#*=}
option_name=${option%=$option_var}
option_name=${option%="$option_var"}
if [[ "${#option_name}" = "1" ]]; then
short_options="${short_options}${option_name}"
if [[ "${#option_var}" -gt "1" ]]; then
Expand All @@ -123,7 +123,7 @@ parse_options() {
parameters+=("$argument")
for known_option in "${options[@]}"; do
known_option_var=${known_option#*=}
known_option_name=${known_option%=$known_option_var}
known_option_name=${known_option%="$known_option_var"}
if [[ "$known_option_var" = "?" && "$argument" = --$known_option_name ]]; then
next_is_value="yes"
break
Expand All @@ -149,7 +149,7 @@ parse_options() {
# Set the corresponding variable for known options
for known_option in "${options[@]}" "${short_option_vars[@]}"; do
known_option_var=${known_option#*=}
known_option_name=${known_option%=$known_option_var}
known_option_name=${known_option%="$known_option_var"}

# Short option
if [[ "$option" = "$known_option_name" ]]; then
Expand Down

0 comments on commit a1f5dd3

Please sign in to comment.