From a4d728c9deaa0a2b414c568861930575a3ec2a3c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 14 Mar 2019 12:49:12 +0100 Subject: [PATCH] completions/ezjail-admin: Stringify Specifically `grep`, these awks are still a bit too annoying to do with `string`. --- share/completions/ezjail-admin.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/ezjail-admin.fish b/share/completions/ezjail-admin.fish index 287bce118..5eb0fc74c 100644 --- a/share/completions/ezjail-admin.fish +++ b/share/completions/ezjail-admin.fish @@ -3,11 +3,11 @@ function __fish_complete_jails end function __fish_complete_running_jails - ezjail-admin list | tail +3 | grep '^.R' | awk '{ print $4 }' + ezjail-admin list | tail +3 | string match -r '^.R' | awk '{ print $4 }' end function __fish_complete_stopped_jails - ezjail-admin list | tail +3 | grep '^.S' | awk '{ print $4 }' + ezjail-admin list | tail +3 | string match -r '^.S' | awk '{ print $4 }' end # archive