Skip to content
Snippets Groups Projects
Commit 9aab0876 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

chore: improve the forall-git script a bit

parent 5c4e9c94
No related branches found
No related tags found
No related merge requests found
......@@ -15,10 +15,10 @@ else
find -L . -maxdepth 3 -name .git -type d|while read gitdir; do
projectdir=$(dirname $gitdir)
pushd $projectdir > /dev/null
WD=$(basename $(pwd))
pushd "$projectdir" > /dev/null || exit
WD=$(basename "$(pwd)")
echo -e "${COLOR}${WD}${NC}"
"$@"
popd > /dev/null
popd > /dev/null || exit
done
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment