From 70645bf34cd56490d15f5e718148a518d15d1a7a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 13 Jul 2023 00:14:01 +0200 Subject: [PATCH] Add `git` to the temporary `PATH` --- winfs/Scripts/Startup.cmd | 2 +- winfs/Scripts/Startup.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/winfs/Scripts/Startup.cmd b/winfs/Scripts/Startup.cmd index 1afe89f..6fc43fe 100644 --- a/winfs/Scripts/Startup.cmd +++ b/winfs/Scripts/Startup.cmd @@ -1,4 +1,4 @@ @echo off wpeutil SetKeyboardLayout 0807:00000807 echo Launching Startup Script... -start X:\PowerShell\pwsh.exe -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1" +start X:\PowerShell\pwsh.exe -NoExit -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1" diff --git a/winfs/Scripts/Startup.ps1 b/winfs/Scripts/Startup.ps1 index e4adcc2..0389415 100644 --- a/winfs/Scripts/Startup.ps1 +++ b/winfs/Scripts/Startup.ps1 @@ -1,6 +1,6 @@ $null = $env:WIN_COMPUTER_NAME; $null = $env:SETUP_SCRIPT_NAME; -& "X:/git/bin/git.exe" clone https://git.nuth.ch/manuth/PortValhalla.git; +Set-Alias git "X:/git/bin/git.exe"; +git clone https://git.nuth.ch/manuth/PortValhalla.git; Set-Location PortValhalla; -pwsh;