diff --git a/cron.bat b/cron.bat index bb097bd..a4a7564 100644 --- a/cron.bat +++ b/cron.bat @@ -1,3 +1,4 @@ @echo off -git pull \ No newline at end of file +git fetch --all +git reset --hard origin/master \ No newline at end of file diff --git a/scripts/task_setup.ps1 b/scripts/task_setup.ps1 index 8394a96..ba0bb3f 100644 --- a/scripts/task_setup.ps1 +++ b/scripts/task_setup.ps1 @@ -1,10 +1,16 @@ -Set-ExecutionPolicy RemoteSigned - - $path = [Environment]::GetFolderPath("MyDocuments") +$path2 = "VAT-Software" 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"