]> git.phdru.name Git - mimedecode.git/commitdiff
Fix current/origin directories
authorOleg Broytman <phd@phdru.name>
Mon, 6 Jul 2015 15:54:30 +0000 (18:54 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 6 Jul 2015 15:54:30 +0000 (18:54 +0300)
update

diff --git a/update b/update
index 0322c1ffc42d615c03748d3f8ec9cc01e96bf108..e026690663039911fd6335fbd6116f7371dc5283 100755 (executable)
--- a/update
+++ b/update
@@ -2,8 +2,10 @@
 
 "$HOME"/admin/prog/git-scripts/update || exit 1
 
-current="`git config --get --path remote.current.url`"
+current="`pwd`"
+origin="`git config --get --path remote.origin.url`"
 
 # Copy mimedecode.docbook with timestamp to avoid rebuilding
+cd "$origin"
 exec rsync -ahP "$current"/mimedecode.docbook "$current"/mimedecode.man \
                 "$current"/mimedecode.html "$current"/mimedecode.txt .