Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Angel senechaux

🎯
Focusing
View GitHub Profile
@senechaux
senechaux / git_pull_all.sh
Created Oct 3, 2018
Git pull all subdirectories in current directory
View git_pull_all.sh
#!/bin/bash
DIRS=`ls -d */`
for dir in ${DIRS[@]}; do
cd $dir
if [ -d .git ]; then
echo '=================='
echo '=================='
echo $dir