diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-06-23 14:44:19 +0300 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-06-29 17:12:53 +0300 |
commit | de3457e24e6d35459ce45bd5a97bc0963d3d42af (patch) | |
tree | 7d20f3731b2efd30655ad5d26693e82be21113fa /helpers | |
parent | db95ab279074944729dc4a45621706db0ac09918 (diff) |
[llvm-env] List current worktree directories - Errata
Forgot to add a patch set before merging (I don't know how I didn't notice
that...).
Errata for Change-Id: I787594ce1ecea0de68ceb0e518194b783da408b3
Change-Id: Ic3fc33cd643fd5d5f9a6d3280af9ab7c898227bc
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/llvm-env | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/helpers/llvm-env b/helpers/llvm-env index c45fb2e..f293adb 100755 --- a/helpers/llvm-env +++ b/helpers/llvm-env @@ -35,20 +35,21 @@ list_worktrees() { pushdq $LLVM_ROOT for dir in *; do - if [ -d "$dir" -a "$dir" != "repos" -a -d "$dir/llvm" ]; then + if [ -d "$dir" -a -f "$dir/llvm/.git" ]; then pushdq $dir/llvm branch=`get_branch` popdq - if [ "$current_worktree" = $LLVM_ROOT/$dir/llvm ]; then - echo "[ Worktree: $dir ($branch) ]" + if [ "$current_worktree" = "$LLVM_ROOT/$dir/llvm" ]; then + echo "[ $dir ($branch) ]" else - echo "Wortkree: $dir ($branch)" + echo "$dir ($branch)" fi fi done popdq + } if [ "$1" = "" ]; then |