From 46a7a3a453fe17ce7b24ede20c94abfd0aa2b32b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 20 May 2014 10:37:05 +0400 Subject: [PATCH] Get cgi from origin before cd'ing to current --- update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update b/update index e1b9b1b..1b9b518 100755 --- a/update +++ b/update @@ -27,7 +27,7 @@ rsync -ahP "$current"/html/html.py "$current"/html/html.tmpl \ # Save files generated by yacc rsync -ahP "$current"/parser.out "$current"/parsetab.py . && -cd "$current" && git pull origin && - cgi="`git config --get --path remote.cgi.url`" && -[ -n "$cgi" ] && cd "$cgi" && exec git pull origin +[ -n "$cgi" ] && cd "$cgi" && git pull origin && + +cd "$current" && exec git pull origin -- 2.39.2