GCM
This commit is contained in:
parent
8e32c77541
commit
7abc587124
16
setup.sh
16
setup.sh
@ -108,7 +108,6 @@ else
|
||||
# ARCH LINUX
|
||||
if [ "$OS" == "arch" ] || [ "$OS" == "manjaro" ]; then
|
||||
sudo pacman -S --noconfirm --needed docker docker-compose
|
||||
# Enable service
|
||||
sudo systemctl enable --now docker
|
||||
fi
|
||||
|
||||
@ -160,6 +159,21 @@ if ! command -v eza &> /dev/null; then
|
||||
cargo install eza
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
# GIT CREDENTIAL CONFIGURATION
|
||||
# ---------------------------------------------------------------------
|
||||
echo -e "${BLUE} LOG:${YELLOW} Configuring Git Credentials...${NC}"
|
||||
|
||||
if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then
|
||||
GCM_WIN="/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe"
|
||||
if [ -f "$GCM_WIN" ]; then
|
||||
git config --global credential.helper "$GCM_WIN"
|
||||
fi
|
||||
else
|
||||
# Linux Server: Cache credentials for 12 hour
|
||||
git config --global credential.helper 'cache --timeout=43200'
|
||||
fi
|
||||
|
||||
# Docker Group
|
||||
echo -e "${BLUE} LOG:${YELLOW} Setting up Docker group...${NC}"
|
||||
if ! getent group docker > /dev/null 2>&1; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user