Last active
July 16, 2023 12:22
-
-
Save artemkozlenkov/7f5a7ec251fe034fb4d127c9b61e58b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@' | |
# Check if Chocolatey is installed, and if not, install it | |
if (-not (Get-Command choco -ErrorAction SilentlyContinue)) { | |
Write-Output "Chocolatey is not installed. Installing Chocolatey..." | |
Set-ExecutionPolicy Bypass -Scope Process -Force | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
} | |
# Install Git using Chocolatey | |
Write-Output "Installing Git..." | |
choco install git -y | |
# Verify the installation | |
Write-Output "Git installation completed." | |
Write-Output "Git version:" | |
git --version | |
'@ | Set-Content -Path "script.ps1" | |
& .\script.ps1 | |
add mql download
corect path
update
update1
upd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
initial