script changes

This commit is contained in:
vat_emp 2023-03-17 12:04:04 +01:00
parent 02def77ed6
commit 9056919241
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,4 @@
@echo off @echo off
git pull git fetch --all
git reset --hard origin/master

View File

@ -1,10 +1,16 @@
Set-ExecutionPolicy RemoteSigned
$path = [Environment]::GetFolderPath("MyDocuments") $path = [Environment]::GetFolderPath("MyDocuments")
$path2 = "VAT-Software"
cd $path cd $path
git clone https://github.com/t0is/VAT-software.git if (Test-Path -LiteralPath (Join-Path $path $path2)) {
Remove-Item 'VAT-Software' -Recurse -Force -Confirm:$false
}
git clone https://git.iop.cz/vat/software.git VAT-Software
cd VAT-Software
git config credential.helper store
git config user.email "vat_emp@dalkove-ovladace.cz"
git config user.name "vat_emp"
$path = $path + "\VAT-software" + "\cron.bat" $path = $path + "\VAT-software" + "\cron.bat"