We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 360ad4a commit f2a5b39Copy full SHA for f2a5b39
share/ruby-install/ruby-install.sh
@@ -87,7 +87,7 @@ function parse_ruby()
87
case "$string" in
88
*-[0-9]*)
89
ruby="${string%-[0-9]*}"
90
- ruby_version="${string#$ruby-}"
+ ruby_version="${string#"$ruby"-}"
91
;;
92
[0-9]*)
93
ruby="ruby"
share/ruby-install/util.sh
@@ -12,7 +12,7 @@ function fetch()
12
13
while IFS="" read -r line; do
14
if [[ "$line" == "$key:"* ]]; then
15
- echo "${line##$key:*([[:space:]])}"
+ echo "${line##"$key":*([[:space:]])}"
16
fi
17
done < "$file"
18
}
0 commit comments