updated bootstrap

This commit is contained in:
2020-08-29 15:13:31 +08:00
parent f219fe6718
commit 526ef913af

View File

@@ -24,7 +24,8 @@ if [ "$system_type" = "Linux" ] || [ "$system_type" = "WSL1" ] || [ "$system_typ
fi
fi
if [ "$system_type" = "WSL1" ] || [ "$system_type" = "WSL1" ] ; then
if [ "$system_type" = "WSL1" ] || [ "$system_type" = "WSL2" ] ; then
echo "Fixing git cred on WSL""Fixing git cred on WSL"
# config WSL git authorisation
if [ ! -f /usr/bin/git-credential-manager ] ; then
echo '#!/bin/sh \nexec "/mnt/d/AppData/scoop/apps/git/current/mingw64/libexec/git-core/git-credential-manager.exe" $@' | sudo tee /usr/bin/git-credential-manager