Skip to content

Commit f2a5b39

Browse files
committed
lint: Fix SC2295 violations
1 parent 360ad4a commit f2a5b39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

share/ruby-install/ruby-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function parse_ruby()
8787
case "$string" in
8888
*-[0-9]*)
8989
ruby="${string%-[0-9]*}"
90-
ruby_version="${string#$ruby-}"
90+
ruby_version="${string#"$ruby"-}"
9191
;;
9292
[0-9]*)
9393
ruby="ruby"

share/ruby-install/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function fetch()
1212

1313
while IFS="" read -r line; do
1414
if [[ "$line" == "$key:"* ]]; then
15-
echo "${line##$key:*([[:space:]])}"
15+
echo "${line##"$key":*([[:space:]])}"
1616
fi
1717
done < "$file"
1818
}

0 commit comments

Comments
 (0)