diff --git a/Scripts/list-workdir.ps1 b/Scripts/list-workdir.ps1 index 05fd2675..50c514db 100755 --- a/Scripts/list-workdir.ps1 +++ b/Scripts/list-workdir.ps1 @@ -2,9 +2,10 @@ .SYNOPSIS Lists the current working directory .DESCRIPTION - This PowerShell script lists the current working directory (but not the content itself!) + This PowerShell script lists the path to current working directory (but not the content itself). .EXAMPLE PS> ./list-workdir + 📂C:\Users\Markus\source\repos\PowerShell\Scripts .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -12,10 +13,10 @@ #> try { - $CWD = Resolve-Path "$PWD" - "📂$CWD" + $Path = Resolve-Path "$PWD" + "📂$Path" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} +} \ No newline at end of file