Created
September 24, 2012 22:59
-
-
Save Roconda/3778973 to your computer and use it in GitHub Desktop.
Using this script to update my chef cookbooks
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/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