diff --git a/build-tools/git-repo-utils.sh b/build-tools/git-repo-utils.sh index fc4acf85..f2309c78 100644 --- a/build-tools/git-repo-utils.sh +++ b/build-tools/git-repo-utils.sh @@ -53,7 +53,7 @@ git_repo_project() { cd ${DIR} GIT_RELATIVE_DIR=$(git_repo_rel_dir) - repo forall -c "if [ \$REPO_PATH == ${GIT_RELATIVE_DIR} ]; then echo \$REPO_PROJECT; fi" + repo forall -c "if [ \$REPO_PATH = ${GIT_RELATIVE_DIR} ]; then echo \$REPO_PROJECT; fi" ) } @@ -69,7 +69,7 @@ git_repo_remote() { cd ${DIR} GIT_RELATIVE_DIR=$(git_repo_rel_dir) - repo forall -c "if [ \$REPO_PATH == ${GIT_RELATIVE_DIR} ]; then echo \$REPO_REMOTE; fi" + repo forall -c "if [ \$REPO_PATH = ${GIT_RELATIVE_DIR} ]; then echo \$REPO_REMOTE; fi" ) } @@ -86,7 +86,7 @@ git_repo_remote_branch() { cd ${DIR} GIT_RELATIVE_DIR=$(git_repo_rel_dir) - REF=$(repo forall -c "if [ \$REPO_PATH == ${GIT_RELATIVE_DIR} ]; then echo \$REPO_RREV; fi") + REF=$(repo forall -c "if [ \$REPO_PATH = ${GIT_RELATIVE_DIR} ]; then echo \$REPO_RREV; fi") if git_is_branch ${REF} ; then echo ${REF} else @@ -107,7 +107,7 @@ git_repo_remote_ref() { cd ${DIR} GIT_RELATIVE_DIR=$(git_repo_rel_dir) - repo forall -c "if [ \$REPO_PATH == ${GIT_RELATIVE_DIR} ]; then echo \$REPO_RREV; fi" + repo forall -c "if [ \$REPO_PATH = ${GIT_RELATIVE_DIR} ]; then echo \$REPO_RREV; fi" ) } diff --git a/build-tools/repo-utils.sh b/build-tools/repo-utils.sh index b8db2ee1..9514b0e9 100644 --- a/build-tools/repo-utils.sh +++ b/build-tools/repo-utils.sh @@ -122,7 +122,7 @@ repo_project_list () { else for remote in ${remote_list[@]}; do repo forall -c \ - 'if [ "$REPO_REMOTE" == "'${remote}'" ]; then echo $REPO_PROJECT; fi' \ + 'if [ "$REPO_REMOTE" = "'${remote}'" ]; then echo $REPO_PROJECT; fi' \ | sort --unique done fi