Skip to content

Commit

Permalink
🐛 Defines Absent Global Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Dec 18, 2024
1 parent 9a13828 commit 3012837
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/open_command.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function open_command {
}

# define the open command
$IsWSL = $IsWSL -or (Test-Path Env:\WSL_DISTRO_NAME -ErrorAction SilentlyContinue)
if ($targetAsUri) {
$open_cmd = @($Env:BROWSER)
} elseif ($IsWSL) {
Expand Down

0 comments on commit 3012837

Please sign in to comment.