From 771877a44989d320e0619b5913767167dc095478 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 5 Jun 2024 20:06:34 +0200 Subject: Testing --- .config/powershell/initialize.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.config/powershell/initialize.ps1') diff --git a/.config/powershell/initialize.ps1 b/.config/powershell/initialize.ps1 index f30bb14..a616998 100644 --- a/.config/powershell/initialize.ps1 +++ b/.config/powershell/initialize.ps1 @@ -81,7 +81,6 @@ function cloneDotfiles { & git.exe config --global user.name $userName & git.exe config --global user.email $email - & git clone --bare $originGitHub $dotPath function global:config { git --git-dir="$dotPath" --work-tree="$env:USERPROFILE" $args @@ -93,11 +92,11 @@ function cloneDotfiles { config pull | Out-Null $update = $true } else { - git clone --bare $dotfiles_url $dotfiles_dir | Out-Null + git clone --bare $originGitHub $dotPath | Out-Null $update = $false } - $std_err_output = config checkout 2>&1 + $std_err_output = config checkout 1>&1 if ($std_err_output -match "following untracked working tree files would be overwritten") { if (-not $update) { @@ -111,7 +110,7 @@ function cloneDotfiles { config reset --hard main | Out-Null config checkout -f if ($?) { - Write-Host "Successfully imported $dotfiles_dir." + Write-Host "Successfully imported $dotPath." } else { handle_error "Mission failed." } -- cgit v1.2.3