avoid 'tr' calls to improve performance a bit

This commit is contained in:
2019-12-16 08:44:43 +01:00
parent 487d8eb287
commit d4ab170b3c
3 changed files with 20 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ fn_exists() {
repo_exists() {
DEP=$1
dep_lc=$(echo $DEP | tr 'A-Z' 'a-z')
dep_lc=${DEP,,}
eval dirname=\${${DEP}_DIRNAME:=${dep_lc}}
eval reponame=\${${DEP}_REPONAME:=${dep_lc}}
eval repourl=\${${DEP}_REPOURL:="https://github.com/\${${DEP}_REPOOWNER:=${REPOOWNER:-epics-modules}}/${reponame}.git"}
@@ -35,7 +35,7 @@ repo_exists() {
git ls-remote --quiet --heads --exit-code $repourl > /dev/null 2>&1
}
SETUP_DIRS=$(echo $SETUP_PATH | tr ":" "\n")
SETUP_DIRS=${SETUP_PATH//:/ }
SCRIPTDIR=$(dirname $(readlinkf $0))/travis
CURDIR="$PWD"