vat-software/scripts/shared_sw/task_init.ps1
2023-08-29 19:31:17 +02:00

18 lines
454 B
PowerShell

$path = [Environment]::GetFolderPath("MyDocuments")
$path2 = "VAT-Software"
cd $path
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"
$fullPath = Join-Path $path $path2
schtasks /create /sc minute /mo 120 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'"