From 232d0a21bb34edec50621ad13e1e12083184ecc7 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Sun, 29 Oct 2023 18:26:37 +0100 Subject: [PATCH] completions: fix dependency to awk Signed-off-by: Luca Di Maio --- completions/distrobox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/distrobox b/completions/distrobox index 84f028120a..f49516ee80 100644 --- a/completions/distrobox +++ b/completions/distrobox @@ -44,7 +44,7 @@ _generate_from_help() { [[ ${command} != *"list"* ]] && [[ ${command} != *"assemble"* ]]; then while IFS= read -r line; do list+="$line " - done < <(distrobox-list --no-color | tail -n+2 | awk '{print $3}') + done < <(distrobox-list --no-color | tail -n+2 | cut -d'|' -f2) COMPREPLY=($(compgen -W "${list}" "${cur}")) return 0 fi