From e6b26efd4162c51cbdf5a47d4b11b656ea214563 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Wed, 18 Feb 2015 22:40:56 +0530 Subject: added wait_window, redirecting errors --- patcher.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/patcher.sh b/patcher.sh index 9f7b840..7189889 100755 --- a/patcher.sh +++ b/patcher.sh @@ -53,6 +53,7 @@ return_code_8="Server error. $generic_return_code" # ===================================================================================== function clean_up() { + wait_seconds 3 echo "=========================== New iteration =========================">>$logfile date >> $logfile [ -f $testfile ] && rm -v $testfile>>$logfile @@ -87,7 +88,7 @@ function check_internet() { # Fetch updates if internet is available and formulate a CSV function list_updates() { # If internet available just merge the changes (won't update patches automatically) - [ $INET_AVAILABLE -eq 1 ] && git pull + [ $INET_AVAILABLE -eq 1 ] && git pull &>/dev/null # Create CSV of commits with only tags( git tags are used to group similar patches) git log --pretty=\;\(%ar\)\;%d\;%s\;\(%h\) --no-walk --tags >\ $all_commits_one_liner_with_date @@ -225,7 +226,7 @@ function spl_kernel_manage() { # ====================================================================================== -function call_functions() { +function main() { #Function calls clean_up check_internet @@ -243,4 +244,4 @@ function call_functions() { # ====================================================================================== # __init__ -call_functions +main -- cgit