mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 18:34:46 +00:00
Optimize the display effect
This commit is contained in:
@@ -400,11 +400,13 @@ main() {
|
||||
|
||||
# Display active whitelist patterns
|
||||
if [[ ${#CURRENT_WHITELIST_PATTERNS[@]} -gt 0 ]]; then
|
||||
local patterns_list=$(
|
||||
local IFS=', '
|
||||
echo "${CURRENT_WHITELIST_PATTERNS[*]}"
|
||||
)
|
||||
echo -e "${ICON_ADMIN} Active Whitelist: ${patterns_list}"
|
||||
local count=${#CURRENT_WHITELIST_PATTERNS[@]}
|
||||
if [[ $count -le 3 ]]; then
|
||||
local patterns_list=$(IFS=', '; echo "${CURRENT_WHITELIST_PATTERNS[*]}")
|
||||
echo -e "${ICON_ADMIN} Active Whitelist: ${patterns_list}"
|
||||
else
|
||||
echo -e "${ICON_ADMIN} Active Whitelist: ${GRAY}${count} items${NC}"
|
||||
fi
|
||||
fi
|
||||
echo "" # Empty line before sudo prompt
|
||||
|
||||
|
||||
BIN
bin/status-go
BIN
bin/status-go
Binary file not shown.
Reference in New Issue
Block a user