mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
machinectl: Fix fatal errors in __fish_systemd_has_machine_image
This commit is contained in:
parent
a1b86749cf
commit
0f3306870b
1 changed files with 2 additions and 2 deletions
|
@ -6,9 +6,9 @@ terminate kill bind copy-{to,from} list-images image-status show-image clone ren
|
|||
|
||||
function __fish_systemd_has_machine_image
|
||||
set -l images (__fish_systemd_machine_images)
|
||||
for i in images
|
||||
for i in $images ".host"
|
||||
# Include ".host" here because it _is_ a valid machine
|
||||
if contains -- $i (commandline -opc) ".host"
|
||||
if contains -- $i (commandline -opc)
|
||||
echo $i
|
||||
return 0
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue