mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
fix broken byobu-status-detail, don't want to eval $--detail
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
d054a21630
commit
6f63f0d65f
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue