* bin/hostname: hostname -s fails sometimes, it seems

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-04-25 10:28:54 -05:00
commit 7f48b9228b
2 changed files with 3 additions and 2 deletions

View file

@ -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)

3
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Fri, 24 Apr 2009 09:22:16 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 25 Apr 2009 10:27:22 -0500
screen-profiles (1.50-0ubuntu1) jaunty; urgency=low