Last active
June 2, 2024 16:11
-
-
Save bcfurtado/bfa86ce691c0604e9c1b to your computer and use it in GitHub Desktop.
A simple bash script to update all my local repos
This file contains hidden or 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 | |
echo 'Updating repos' | |
for $project in `find . -type d -depth 1` | |
do | |
echo 'Current repo: ' $project | |
cd $project | |
git pull | |
cd .. | |
done | |
echo 'Done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment