From 0079171810a7c8ddedb70cbbf63d407c5090741d Mon Sep 17 00:00:00 2001 From: Kyle K Date: Mon, 5 Jun 2017 22:55:52 -0500 Subject: R.A.T. 5 mouse setting for Xorg --- tiny/repos-update.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tiny/repos-update.sh (limited to 'tiny') diff --git a/tiny/repos-update.sh b/tiny/repos-update.sh new file mode 100644 index 0000000..048fbc4 --- /dev/null +++ b/tiny/repos-update.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# run as kyle +if [[ $(id -u) -eq 0 ]]; then + su - kyle +fi + + +declare -a REPODIRS=("repo" "repo gaming r" "repo r" "repo small projects") + +for d in "${REPODIRS[@]}"; do + cd "$d" + for r in *; do + echo -e "\e[00;32mUpdating ${r}\e[00m" + cd "$r" + if [[ -d ".git" ]]; then git pull; fi + if [[ -d ".svn" ]]; then svn up; fi + + if [[ ! $? -eq 0 ]]; then echo 'failed to update repo: ${r}'; fi + cd ../ + done + cd ../ +done + +exit 0 + -- cgit v1.2.3