mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
Rmove usage of deprecated str contains --not
(#880)
Related: https://github.com/nushell/nushell/issues/13163
This commit is contained in:
parent
9b08b15981
commit
92f20ff282
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ export def repo-structured [] {
|
||||||
$status
|
$status
|
||||||
| where ($it | str starts-with '# branch.head')
|
| where ($it | str starts-with '# branch.head')
|
||||||
| first
|
| first
|
||||||
| str contains --not '(detached)'
|
| str contains '(detached)'
|
||||||
|
| not $in
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue