Change megapull to use multiple exec

This commit is contained in:
exu 2025-04-15 09:52:16 +02:00
parent fba21c4f5b
commit 027bb9a340

View File

@ -1,4 +1,4 @@
# Pull all git repos within the current directory
function megapull
find . -type d -exec sh -c 'if [ -d "$0/.git" ]; then git -C "$0" pull; fi' {} \;
find . -type d -exec test -d {}/.git \; -exec echo "Working on {}" \; -exec git -C {} pull \;
end