Skip to content

Commit f9e7a0b

Browse files
authored
Unrolled build for #142908
Rollup merge of #142908 - psumbera:solaris-tr, r=jieyouxu Fix install-template.sh for Solaris tr Allow to run install.sh also on Solaris where tr is not GNU tr.
2 parents 706f244 + c7bfb11 commit f9e7a0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/rust-installer/install-template.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ valopt() {
160160
local doc="$*"
161161
if [ $HELP -eq 0 ]
162162
then
163-
local uop=$(echo $op | tr 'a-z-' 'A-Z_')
163+
local uop=$(echo $op | tr '[a-z]-' '[A-Z]_')
164164
local v="CFG_${uop}"
165165
eval $v="$default"
166166
for arg in $CFG_ARGS
@@ -206,8 +206,8 @@ opt() {
206206
do
207207
if [ "$arg" = "--${flag}-${op}" ]
208208
then
209-
op=$(echo $op | tr 'a-z-' 'A-Z_')
210-
flag=$(echo $flag | tr 'a-z' 'A-Z')
209+
op=$(echo $op | tr '[a-z]-' '[A-Z]_')
210+
flag=$(echo $flag | tr '[a-z]' '[A-Z]')
211211
local v="CFG_${flag}_${op}"
212212
eval $v=1
213213
putvar $v
@@ -235,7 +235,7 @@ flag() {
235235
do
236236
if [ "$arg" = "--${op}" ]
237237
then
238-
op=$(echo $op | tr 'a-z-' 'A-Z_')
238+
op=$(echo $op | tr '[a-z]-' '[A-Z]_')
239239
local v="CFG_${op}"
240240
eval $v=1
241241
putvar $v

0 commit comments

Comments
 (0)