Skip to content

Commit

Permalink
Silence errors when running when files already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyBacon5 authored Nov 18, 2024
1 parent 28b70a5 commit 875c9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ function Reload-Env {
#---------------------------------------------------------------------------------------------------------------------------------------------

if ((Split-Path -Leaf (pwd)) -ne "likes-gay-config") {
mkdir "likes-gay-config"
mkdir -Force "likes-gay-config"
cd "likes-gay-config"
# $PSCommandPath is the path to the script that is running
if ($null -ne $PSCommandPath) {
Move-Item -Path $PSCommandPath -Destination "."
Move-Item -Force -Path $PSCommandPath -Destination "."
}
}

Expand Down

0 comments on commit 875c9f1

Please sign in to comment.