Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abid committed Oct 7, 2024
1 parent b460070 commit 6921bd1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
set -e

availableServices=(adminer)
availableServices+=(volumes-bnr)
availableServices+=(nfs-server)
availableServices+=(redis)
availableServices+=(redis-insight)
availableServices+=(redis-slave)
availableServices+=(redis-sentiner)
availableServices+=(traefik)

showServicesList() {
local columns=4
local columns=6
local width=20
local rows=$(( (${#availableServices[@]} + columns - 1) / columns ))

printf "%s\n" "------------------------------------------"
printf "%s %s %s\n" " " "Services List" " "
printf "%s\n" "=========================================="
printf "%s\n" " Services List "
printf "%s\n" "=========================================="

for ((i=0; i<rows; i++)); do
Expand All @@ -24,7 +29,7 @@ showServicesList() {
echo
done

printf "%s\n\n" "=========================================="
printf "%s\n\n" "------------------------------------------"
}

showServicesList

0 comments on commit 6921bd1

Please sign in to comment.