Created
October 21, 2022 17:37
-
-
Save davenicoll/cf6d232c4b554734ac0cc2bdc5ab989b to your computer and use it in GitHub Desktop.
Pull latest from all repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for folder in */; do | |
cd "./${folder}" | |
echo "Updating ${folder}..." | |
if [[ -d ".git" ]]; then | |
git pull | |
else | |
echo "Not a git repo, skipping" | |
fi | |
cd .. | |
echo "" | |
done | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment