From 6f63f0d65f5acf4a28a91080bd466b661723d0d4 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 18 Jun 2009 01:42:31 -0500 Subject: [PATCH] fix broken byobu-status-detail, don't want to eval $--detail Signed-off-by: Dustin Kirkland --- byobu-status | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/byobu-status b/byobu-status index 4e9ba248..c392f82e 100755 --- a/byobu-status +++ b/byobu-status @@ -65,16 +65,17 @@ if [ -r "$HOME/.$PKG/status" ]; then fi P="$1" -eval x=\$$P -export $P - case "$P" in # default = on, user must override to turn off cpu_count|cpu_freq|date|load_average|logo|mem_available|mem_used|menu|reboot_required|release|time|updates_available|uptime) + eval x=\$$P + export $P [ "$x" = "0" ] && exit 0 ;; # default = off, user must override to turn on arch|battery|disk|ec2_cost|hostname|ip_address|mail|network|processes|users|temp_c|temp_f|whoami|wifi_quality) + eval x=\$$P + export $P [ "$x" = "1" ] || exit 0 ;; --detail)