Skip to content

Commit 5ade715

Browse files
committed
feat(plugin count): adds color to ACTIVE vs INACTIVE
1 parent fd64c1c commit 5ade715

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

count-plugin.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ for s in "${sites[@]}"; do
4141
if [[ $plugin_status -eq 0 ]]; then
4242
# Status 0: Plugin is ACTIVE
4343
((active_count++))
44-
echo "Site: $s | ACTIVE"
44+
echo -e "Site: $s | \e[42;30m ACTIVE \e[0m"
45+
4546
elif [[ $plugin_status -eq 1 ]]; then
4647
# Status 1: Plugin is INACTIVE or not installed
47-
echo "Site: $s | INACTIVE"
48+
echo -e "Site: $s | \e[41;37m INACTIVE \e[0m"
4849
else
4950
# Any other status: WP-CLI command failed
5051
echo "Site: $s | FAILED to get status (site may be archived or deleted)"

0 commit comments

Comments
 (0)