Merge pull request #1557 from megakoresh/patch-1

Fixes #1556
This commit is contained in:
4s3ti 2022-06-25 11:47:50 +02:00 committed by GitHub
commit 718d3df573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1105,7 +1105,7 @@ updateRepo(){
# Go back to /usr/local/src otherwise git will complain when the current working # Go back to /usr/local/src otherwise git will complain when the current working
# directory has just been deleted (/usr/local/src/pivpn). # directory has just been deleted (/usr/local/src/pivpn).
cd /usr/local/src && \ cd /usr/local/src && \
$SUDO git clone -q --depth 1 --no-single-branch "${2}" "${1}" > /dev/null & spinner $! $SUDO git clone -q --depth 1 --no-single-branch "${2}" "${1}" > /dev/null && spinner $!
cd "${1}" || exit 1 cd "${1}" || exit 1
echo " done!" echo " done!"
if [ -n "${pivpnGitBranch}" ]; then if [ -n "${pivpnGitBranch}" ]; then