#!/bin/bash declare -a arr=("snikket" "plausible") for i in "${arr[@]}" do if [ "$i" = "snikket" ] then echo echo "snikket" echo cd /etc/snikket docker compose pull docker compose up -d cd elif [ "$i" = "plausible" ] then echo echo "plausible" echo cd /home/airikr/docker/plausible docker compose pull docker compose up -d cd fi done