machinectl: Fix fatal errors in __fish_systemd_has_machine_image

This commit is contained in:
Fabian Homborg 2015-06-30 17:37:55 +02:00 committed by David Adam
parent a1b86749cf
commit 0f3306870b

View file

@ -6,9 +6,9 @@ terminate kill bind copy-{to,from} list-images image-status show-image clone ren
function __fish_systemd_has_machine_image function __fish_systemd_has_machine_image
set -l images (__fish_systemd_machine_images) 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 # Include ".host" here because it _is_ a valid machine
if contains -- $i (commandline -opc) ".host" if contains -- $i (commandline -opc)
echo $i echo $i
return 0 return 0
end end