From 57d411d7a7b108118545c0d79f4318afb330374e Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 18 Jan 2013 04:39:48 +0100 Subject: [PATCH] made sleeptime a variable --- ggcAll.sh | 5 +++-- gpullAll.sh | 5 +++-- gresetAll.sh | 5 +++-- setup.sh | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ggcAll.sh b/ggcAll.sh index 89315f1..f0f90b0 100755 --- a/ggcAll.sh +++ b/ggcAll.sh @@ -16,8 +16,9 @@ # -echo "Will run git gc on all repos in this directory in 10 sec." -sleep 10 +SLEEPTIME=5 +echo "Will run -git gc- on all repos in `pwd` in ${SLEEPTIME} sec." +sleep $SLEEPTIME echo "------OLD------" > /tmp/ggcAll.txt find . -path '*.git' -type d -print0 | du -sch --files0-from=- >> /tmp/ggcAll.txt diff --git a/gpullAll.sh b/gpullAll.sh index 242d4ed..b7a66e7 100755 --- a/gpullAll.sh +++ b/gpullAll.sh @@ -15,8 +15,9 @@ # along with this program. If not, see . # -echo "updating all repos in `pwd` in 10 sec." -sleep 10 +SLEEPTIME=5 +echo "Will run -git pull- on all repos in `pwd` in ${SLEEPTIME} sec." +sleep $SLEEPTIME find . -path '*.git' -type d -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git pull \; diff --git a/gresetAll.sh b/gresetAll.sh index 6c49634..1fe8550 100755 --- a/gresetAll.sh +++ b/gresetAll.sh @@ -15,9 +15,10 @@ # along with this program. If not, see . # -echo "running git reset --hard on all repos in `pwd` in 30 sec." +SLEEPTIME=30 +echo "Will run -git reset --hard- on all repos in `pwd` in ${SLEEPTIME} sec." echo "THIS IS POTENTIONALLY FATAL, KNOW WHAT YOU ARE DOING!" -sleep 30 +sleep $SLEEPTIME find . -path '*.git' -type d -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git reset --hard \; diff --git a/setup.sh b/setup.sh index 394a634..0b63068 100755 --- a/setup.sh +++ b/setup.sh @@ -16,8 +16,9 @@ # -echo "Will symlink all githelper-scripts to ../ in 10 sec." -sleep 10 +SLEEPTIME=10 +echo "Will symlink all githelper-scripts to ../ in ${SLEEPTIME} sec." +sleep $SLEEPTIME cd .. ln -s githelper/gpullAll.sh gpullAll.sh -- 2.43.0