From 7f48b9228b59fe157ca30c593335f01c04fbb959 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 25 Apr 2009 10:28:54 -0500 Subject: [PATCH] * bin/hostname: hostname -s fails sometimes, it seems Signed-off-by: Dustin Kirkland --- bin/hostname | 2 +- debian/changelog | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/hostname b/bin/hostname index e90b508d..6e67b95b 100755 --- a/bin/hostname +++ b/bin/hostname @@ -20,4 +20,4 @@ at= grep -qs "^whoami=1$" "$HOME/.screen-profiles/status" && at="@" -printf "\005{=b }%s%s\005{-}" "$at" $(hostname -s) +printf "\005{=b }%s%s\005{-}" "$at" $(hostname -s 2>/dev/null || hostname) diff --git a/debian/changelog b/debian/changelog index a83e7c68..022f260b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ screen-profiles (1.51) unreleased; urgency=low * bin/cpu-freq: only print cpu-freq if available + * bin/hostname: hostname -s fails sometimes, it seems - -- Dustin Kirkland Fri, 24 Apr 2009 09:22:16 -0500 + -- Dustin Kirkland Sat, 25 Apr 2009 10:27:22 -0500 screen-profiles (1.50-0ubuntu1) jaunty; urgency=low