akhayyat/dotfiles
install.sh: fix repository update commands
Commit 6f4e9a961550 · Ahmad Khayyat · 2019-11-20 14:14 +0300
Comments
No comments yet.
Diff
diff --git a/install.sh b/install.sh
--- a/install.sh
+++ b/install.sh
@@ -95,8 +95,8 @@
then
hg clone $rev $repo $dir
else
- hg pull $rev
- hg update $rev
+ hg -R $dir pull $rev
+ hg -R $dir update $rev
fi
}
@@ -109,7 +109,7 @@
then
git clone $branch $repo $dir
else
- git pull --ff-only $repo $ref
+ git -C $dir pull --ff-only $repo $ref
fi
}