Skip to content

Instantly share code, notes, and snippets.

@theand
Created June 6, 2014 02:57
Show Gist options
  • Save theand/f7467fb10c24d2c93714 to your computer and use it in GitHub Desktop.
Save theand/f7467fb10c24d2c93714 to your computer and use it in GitHub Desktop.
run 'compser update' on all subdirectory
function update_composer_all(){
for DIR in *;
do
echo "Processing : $DIR/"
[[ -d $DIR ]] && [[ -e $DIR/composer.json ]] && cd $DIR && composer update && cd .. ;
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment