Skip to content

Instantly share code, notes, and snippets.

@martinpi
Created September 17, 2018 10:00
Show Gist options
  • Save martinpi/7d609056e9c157408fd23335eddfed29 to your computer and use it in GitHub Desktop.
Save martinpi/7d609056e9c157408fd23335eddfed29 to your computer and use it in GitHub Desktop.
Update all my copies of Unitilities to the most recent commit
#!/bin/bash
find /Users/pi/Projects -name "Unitilities" -exec sh -c '
for file do
echo "\033[0;32m[ Updating $file ]\033[0m"
cd "$file"
git pull
done
' sh {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment