From 6ba964aa8b846b9fc02ddf318aa0158fcbf73e4b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 4 May 2012 21:46:45 +0200 Subject: bashrc/main: timeout fetch after 3s --- bashrc/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bashrc') 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 -- cgit v1.2.3