Skip to content

Commit

Permalink
Fix issue with incorrect directory separator for non windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
gardebring committed Nov 1, 2021
1 parent eedb4e5 commit 606e1fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/PowerColorLS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
RootModule = 'PowerColorLS.psm1'

# Version number of this module.
ModuleVersion = '1.0.2'
ModuleVersion = '1.0.3'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand All @@ -25,7 +25,7 @@ Author = 'Anders Gardebring'
CompanyName = 'Unknown'

# Copyright statement for this module
Copyright = 'Copyright (c) 2020 Anders Gardebring'
Copyright = 'Copyright (c) 2020-2021 Anders Gardebring'

# Description of the functionality provided by this module
Description = 'List information about files and directories (the current directory by default).
Expand Down
6 changes: 5 additions & 1 deletion src/Private/FileAndFolderFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ function Get-NameForDisplay{
$name = $fileSystemInfo.Name

if($isDirectory){
return "${name}\"
if($IsWindows -eq $True){
return "${name}\"
}else{
return "/${name}"
}
}else{
return $name
}
Expand Down

0 comments on commit 606e1fe

Please sign in to comment.