git fixes

This commit is contained in:
Anthony Axenov 2022-09-29 13:20:30 +08:00
parent 322239ec1f
commit 91be1a194b
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -15,11 +15,11 @@ installed() {
if installed git; then
if [ -d "${HOME}/install/git" ]; then
cd /usr/src/git/ && \
cd "${HOME}/install/git" && \
git pull
else
git clone https://github.com/git/git.git --depth=1 "${HOME}/install/git" && \
cd /usr/src/git/
cd "${HOME}/install/git"
fi
sudo make prefix=/usr/local all && \
sudo make prefix=/usr/local install