Removes iter manifests from bundle-add completion

There is a bug in the code that causes swupd bundle-add <TAB><TAB>
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 <castulo.martinez@intel.com>
This commit is contained in:
Castulo Martinez
2019-05-09 15:33:00 -07:00
committed by Otavio Pontes
parent 755c5549a0
commit 2d29ae07f4
+1 -1
View File
@@ -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 && \