]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/commitdiff
Get cgi from origin before cd'ing to current
authorOleg Broytman <phd@phdru.name>
Tue, 20 May 2014 06:37:05 +0000 (10:37 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 20 May 2014 06:37:05 +0000 (10:37 +0400)
update

diff --git a/update b/update
index e1b9b1b9749a37dd7168c6127c72f05c17c69996..1b9b51822abc9f224b8ab7b50eedef592453b357 100755 (executable)
--- 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