Skip to content

Instantly share code, notes, and snippets.

@Roconda
Created September 24, 2012 22:59
Show Gist options
  • Save Roconda/3778973 to your computer and use it in GitHub Desktop.
Save Roconda/3778973 to your computer and use it in GitHub Desktop.
Using this script to update my chef cookbooks
#!/bin/sh
# Author: Roconda
# Description: Script updates chef cookbooks by using git
# Only execute when in current directory
for e in `ls`
do
if [ -d $e ]; then
cd $e && git pull && cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment