[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
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 @@
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