Skip to content

Commit

Permalink
Use -and instead of && in PowerShell completion script (casey#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored and Spatenheinz committed Jun 28, 2024
1 parent 735d50c commit 6e50b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const POWERSHELL_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[(
r#"function Get-JustFileRecipes([string[]]$CommandElements) {
$justFileIndex = $commandElements.IndexOf("--justfile");
if ($justFileIndex -ne -1 && $justFileIndex + 1 -le $commandElements.Length) {
if ($justFileIndex -ne -1 -and $justFileIndex + 1 -le $commandElements.Length) {
$justFileLocation = $commandElements[$justFileIndex + 1]
}
Expand Down

0 comments on commit 6e50b33

Please sign in to comment.