Merge pull request #738 from StuartFeldt/add-symlinks-to-bulk-command

Adding support for symlinked dirs in bulk command
This commit is contained in:
罗泽轩 2018-12-11 10:06:01 +08:00 committed by GitHub
commit 49fab7267b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ function executBulkOp () {
eval cd "\"$rwsdir\""
local actual=$(pwd)
echo "Executing bulk operation in workspace ${invers}$actual${reset}"
eval find . -name ".git" | while read line; do
eval find -L . -name ".git" | while read line; do
local gitrepodir=${line::${#line}-5} # cut the .git part of find results to have the root git directory of that repository
eval cd "\"$gitrepodir\"" # into git repo location
local curdir=$(pwd)