From 915f7ef10e86558af4b39a4903cfc0e3bb38d0db Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 21 Aug 2023 15:46:57 +0200 Subject: [PATCH] Update clean-repo.ps1 --- Scripts/clean-repo.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/clean-repo.ps1 b/Scripts/clean-repo.ps1 index 2ee18306..111443d9 100755 --- a/Scripts/clean-repo.ps1 +++ b/Scripts/clean-repo.ps1 @@ -7,12 +7,12 @@ .PARAMETER RepoDir Specifies the file path to the local Git repository .EXAMPLE - PS> ./clean-repo C:\base256unicode + PS> ./clean-repo.ps1 C:\rust ⏳ (1/4) Searching for Git executable... git version 2.41.0.windows.3 - ⏳ (2/4) Checking local repository... πŸ“‚C:\base256unicode + ⏳ (2/4) Checking local repository... πŸ“‚C:\rust ⏳ (3/4) Removing untracked files in repository... ⏳ (4/4) Removing untracked files in submodules... - βœ”οΈ Cleaning the πŸ“‚base256unicode repo took 1 sec + βœ”οΈ Cleaning repository πŸ“‚rust took 1 sec .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -45,7 +45,7 @@ try { if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "βœ”οΈ Cleaning the πŸ“‚$RepoDirName repo took $Elapsed sec" + "βœ”οΈ Cleaning repository πŸ“‚$RepoDirName took $Elapsed sec" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"