diff options
| author | Jubilee <workingjubilee@gmail.com> | 2025-06-23 12:48:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-23 12:48:22 -0700 |
| commit | 64cfd5b6d2efc46f2793ad7fccad085218311744 (patch) | |
| tree | 2b1c323877d1add8a07d099251ae0bce7f73270b | |
| parent | 8ba8f1ef4cf747454e334f6a34735f206f2e73b4 (diff) | |
| parent | c7bfb114b7f1dca70cd14d476646cd68f35ef886 (diff) | |
| download | rust-64cfd5b6d2efc46f2793ad7fccad085218311744.tar.gz rust-64cfd5b6d2efc46f2793ad7fccad085218311744.zip | |
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.
| -rw-r--r-- | src/tools/rust-installer/install-template.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/rust-installer/install-template.sh b/src/tools/rust-installer/install-template.sh index f7f408be882..337aaa95b9a 100644 --- a/src/tools/rust-installer/install-template.sh +++ b/src/tools/rust-installer/install-template.sh @@ -160,7 +160,7 @@ valopt() { local doc="$*" if [ $HELP -eq 0 ] then - local uop=$(echo $op | tr 'a-z-' 'A-Z_') + local uop=$(echo $op | tr '[a-z]-' '[A-Z]_') local v="CFG_${uop}" eval $v="$default" for arg in $CFG_ARGS @@ -206,8 +206,8 @@ opt() { do if [ "$arg" = "--${flag}-${op}" ] then - op=$(echo $op | tr 'a-z-' 'A-Z_') - flag=$(echo $flag | tr 'a-z' 'A-Z') + op=$(echo $op | tr '[a-z]-' '[A-Z]_') + flag=$(echo $flag | tr '[a-z]' '[A-Z]') local v="CFG_${flag}_${op}" eval $v=1 putvar $v @@ -235,7 +235,7 @@ flag() { do if [ "$arg" = "--${op}" ] then - op=$(echo $op | tr 'a-z-' 'A-Z_') + op=$(echo $op | tr '[a-z]-' '[A-Z]_') local v="CFG_${op}" eval $v=1 putvar $v |
