summaryrefslogtreecommitdiff
path: root/shell-completion/bash/networkctl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/networkctl')
-rw-r--r--shell-completion/bash/networkctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/networkctl b/shell-completion/bash/networkctl
index 7ca2aa5a81..942c7e1c00 100644
--- a/shell-completion/bash/networkctl
+++ b/shell-completion/bash/networkctl
@@ -24,7 +24,7 @@ __contains_word () {
}
__get_links() {
- networkctl list --no-legend --no-pager --all | awk '{ print $2 }' | sort -u
+ networkctl list --no-legend --no-pager --all | { while read -r a b c; do echo " $b"; done; };
}
_networkctl() {