2022-05-15 01:36:38 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Check for updates for thing in the REPOS_TO_UPDATE variable
|
2022-05-15 01:49:44 -07:00
|
|
|
IFS=: read -ra REPOS_TO_UPDATE_ARR <<< "$REPOS_TO_UPDATE:$DOCS_DIR:$HOME/bin"
|
2022-05-15 01:36:38 -07:00
|
|
|
for REPO in "${REPOS_TO_UPDATE_ARR[@]}"; do
|
|
|
|
tput setaf 2
|
|
|
|
echo " Pulling ${REPO/$HOME/"~"}‥"
|
|
|
|
tput sgr0
|
|
|
|
git -C "$REPO" pull
|
|
|
|
done
|
|
|
|
|
|
|
|
# check for dotfiles updates
|
|
|
|
echo
|
|
|
|
tput setaf 2
|
|
|
|
echo " Checking for dotfiles updates‥"
|
|
|
|
tput sgr0
|
|
|
|
dotfiles pull
|