From d1ac895c1204e0db01768688126372ba539fa148 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 12 Jun 2012 05:43:17 +0200 Subject: bashrc/net: do not display error, if fqdn is not valid --- bashrc/net/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bashrc/net') diff --git a/bashrc/net/init.sh b/bashrc/net/init.sh index 61f64f2..45ee3c4 100644 --- a/bashrc/net/init.sh +++ b/bashrc/net/init.sh @@ -1,5 +1,5 @@ # get net specific data -declare -r _FQDN=$(hostname -f) +declare -r _FQDN=$(hostname -f 2>/dev/null) declare -r _NETNAME=${_FQDN#*.} if [[ -n "${_NETNAME}" ]]; then -- cgit v1.2.3