summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-05-04 21:46:45 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-05-04 21:46:45 +0200
commit6ba964aa8b846b9fc02ddf318aa0158fcbf73e4b (patch)
tree7e691c7631d1e68b17909998a53628cfedc94a4a /bashrc
parent1997e10ff4845cff2490d879f1d2b0420bfae961 (diff)
downloaddotfiles-6ba964aa8b846b9fc02ddf318aa0158fcbf73e4b.tar.gz
dotfiles-6ba964aa8b846b9fc02ddf318aa0158fcbf73e4b.tar.xz
dotfiles-6ba964aa8b846b9fc02ddf318aa0158fcbf73e4b.zip
bashrc/main: timeout fetch after 3s
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc/main.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc/main.sh b/bashrc/main.sh
index 3da1b0b..3ecae9f 100644
--- a/bashrc/main.sh
+++ b/bashrc/main.sh
@@ -19,7 +19,7 @@ _self_update() {
fi
if hash timeout >/dev/null 2>&1; then
- timeout 5s git fetch origin 2>/dev/null
+ timeout 3s git fetch origin 2>/dev/null
if [[ "$?" == "124" ]]; then
echo -e "\033[31m*\033[0m timeout: git fetch origin"
return