Use -and
instead of &&
in PowerShell completion script (#2204)
This commit is contained in:
parent
97c32e60ae
commit
e07da79d40
@ -255,7 +255,7 @@ const POWERSHELL_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[(
|
|||||||
r#"function Get-JustFileRecipes([string[]]$CommandElements) {
|
r#"function Get-JustFileRecipes([string[]]$CommandElements) {
|
||||||
$justFileIndex = $commandElements.IndexOf("--justfile");
|
$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]
|
$justFileLocation = $commandElements[$justFileIndex + 1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user