summaryrefslogtreecommitdiffstats
path: root/bashrc/net
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-06-12 05:43:17 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-06-12 05:43:17 +0200
commitd1ac895c1204e0db01768688126372ba539fa148 (patch)
treeb6966929f02de843907e3622831216ffbce60528 /bashrc/net
parent6064417881e410bc89e15dcec75f627cc1c0f500 (diff)
downloaddotfiles-d1ac895c1204e0db01768688126372ba539fa148.tar.gz
dotfiles-d1ac895c1204e0db01768688126372ba539fa148.tar.xz
dotfiles-d1ac895c1204e0db01768688126372ba539fa148.zip
bashrc/net: do not display error, if fqdn is not valid
Diffstat (limited to 'bashrc/net')
-rw-r--r--bashrc/net/init.sh2
1 files changed, 1 insertions, 1 deletions
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