From 2d29ae07f40c8cbdbf7d53df5d26f9af5892692e Mon Sep 17 00:00:00 2001 From: Castulo Martinez Date: Tue, 7 May 2019 19:14:13 +0000 Subject: [PATCH] Removes iter manifests from bundle-add completion There is a bug in the code that causes swupd bundle-add to list regular bundle names as well as iterative manifest names. This commit fixes the issue by removing the iterative manifests from the list of results. Closes #906 Signed-off-by: Castulo Martinez --- swupd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swupd.bash b/swupd.bash index 39ea24c4..d881fb07 100644 --- a/swupd.bash +++ b/swupd.bash @@ -86,7 +86,7 @@ _swupd() fi if [ -n "$MoM" ] then - opts+="$( sed '1,/^$/d; s/^.*\t/ /' "$MoM" | LC_ALL=C sort )" + opts+="$( sed '1,/^$/d; s/^.*\t/ /; /.*\.I\..*/d' "$MoM" | LC_ALL=C sort )" fi ;; ("bundle-remove") opts+=" $(unset CDPATH; test -d /usr/share/clear/bundles && \