mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2025-02-04 15:07:58 -07:00
Kaj Forney
582f5b5f5c
Former-commit-id: 09eacc3f3f761c2b3454d20356ba085d18bdb722 Former-commit-id: 89d8a1302bd2a72239fbe9ad9820be4ecda76cab
25 lines
606 B
Bash
Executable file
25 lines
606 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
source "$CURRENT_DIR/helpers.sh"
|
|
source "$CURRENT_DIR/variables.sh"
|
|
|
|
print_status() {
|
|
local save_int="$(get_tmux_option "$auto_save_interval_option")"
|
|
local status=""
|
|
local style_wrap
|
|
if [ $save_int -gt 0 ]; then
|
|
style_wrap="$(get_tmux_option "$status_on_style_wrap_option" "")"
|
|
status="$save_int"
|
|
else
|
|
style_wrap="$(get_tmux_option "$status_off_style_wrap_option" "")"
|
|
status="off"
|
|
fi
|
|
|
|
if [ -n "$style_wrap" ]; then
|
|
status="${style_wrap/$status_wrap_string/$status}"
|
|
fi
|
|
echo "$status"
|
|
}
|
|
print_status
|