Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SunsetTechuila/Cursor-Colors-Synchronizer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.3
Choose a base ref
...
head repository: SunsetTechuila/Cursor-Colors-Synchronizer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 10, 2024

  1. Copy the full SHA
    893937a View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 Functions.psm1
6 changes: 3 additions & 3 deletions Functions.psm1
Original file line number Diff line number Diff line change
@@ -42,14 +42,14 @@ function ConvertFrom-CmdPath {
[string]$Path
)
process {
$powershellPath = $Path
$absolutePath = $Path
$variables = [regex]::Matches($Path, '%([^%]+)%') | ForEach-Object -Process { $PSItem.Groups[1].Value }

foreach ($variable in $variables) {
$powershellPath = $powershellPath.Replace("%$variable%", [System.Environment]::GetEnvironmentVariable($variable))
$absolutePath = $absolutePath.Replace("%$variable%", [System.Environment]::GetEnvironmentVariable($variable))
}

$powershellPath
$absolutePath
}
}