Skip to content

Commit

Permalink
lint: Fix SC2295 violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Feb 21, 2023
1 parent 360ad4a commit f2a5b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/ruby-install/ruby-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function parse_ruby()
case "$string" in
*-[0-9]*)
ruby="${string%-[0-9]*}"
ruby_version="${string#$ruby-}"
ruby_version="${string#"$ruby"-}"
;;
[0-9]*)
ruby="ruby"
Expand Down
2 changes: 1 addition & 1 deletion share/ruby-install/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function fetch()

while IFS="" read -r line; do
if [[ "$line" == "$key:"* ]]; then
echo "${line##$key:*([[:space:]])}"
echo "${line##"$key":*([[:space:]])}"
fi
done < "$file"
}
Expand Down

0 comments on commit f2a5b39

Please sign in to comment.