We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd3eba8 commit 6217345Copy full SHA for 6217345
bash_completion
@@ -1685,9 +1685,11 @@ _known_hosts_real()
1685
fi
1686
1687
# Add hosts reported by ruptime.
1688
- COMPREPLY+=( $(compgen -W \
1689
- "$(ruptime 2>/dev/null | awk '!/^ruptime:/ { print $1 }')" \
1690
- -- "$cur") )
+ if type ruptime &>/dev/null; then
+ COMPREPLY+=( $(compgen -W \
+ "$(ruptime 2>/dev/null | awk '!/^ruptime:/ { print $1 }')" \
1691
+ -- "$cur") )
1692
+ fi
1693
1694
# Add results of normal hostname completion, unless
1695
# `COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value.
0 commit comments