Skip to content

Instantly share code, notes, and snippets.

@qoopooh
Last active May 20, 2023 00:52
Show Gist options
  • Save qoopooh/fcad0f833e4630f77d1b7cf8bebd95ad to your computer and use it in GitHub Desktop.
Save qoopooh/fcad0f833e4630f77d1b7cf8bebd95ad to your computer and use it in GitHub Desktop.
Pull all git repositories when we connect VPN
#!/bin/bash
# Pull all SD repositories
#
SD_PROJS=(
SDAndroidApp
YornameApp
android-screenshot
babel
certbot-service
iApp
ifreesite
iyorname
ring2chat
screenshot-scripts
simdif-comments
simdif-edt
simdif-gardenv2
simdif-home
simdif-push
simdif-tracking
taums
v2-docker
yorname
yorname-docker
)
cd $HOME/git/FreeSiteApp && git pull
for proj in "${SD_PROJS[@]}"
do
echo "$proj"
cd ../$proj && git pull
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment