Skip to content

Instantly share code, notes, and snippets.

@unnamedd
Created April 15, 2016 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unnamedd/87a5dba3deb4746b35fceffaca59eac9 to your computer and use it in GitHub Desktop.
Save unnamedd/87a5dba3deb4746b35fceffaca59eac9 to your computer and use it in GitHub Desktop.
script to walk through zewo flux folders and pull data from branch SNAPSHOT-2016-04-12
#!/bin/bash
for i in $(ls -d */); do
if [ ! $i = "Flux.xcodeproj/" ]; then
cd ${i%%/};
printf "\n\n##### ${i%%/}\n"
for f in $(ls -d */); do
cd ${f%%/};
printf "${f%%/}"
git fetch -q
git checkout -q SNAPSHOT-2016-04-12
git pull -q origin SNAPSHOT-2016-04-12
echo " --> OK"
cd ..
done
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment