From 14ddb4f96e556f24c6101d4781efa9b6966cdee5 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 10 Jul 2020 22:10:41 +0700 Subject: [PATCH] Make code more readable --- umbrel-dev | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/umbrel-dev b/umbrel-dev index 2cbbe26..9da4349 100755 --- a/umbrel-dev +++ b/umbrel-dev @@ -82,15 +82,6 @@ fi # Initialize an Umbrel development environment in the working directory if [[ "$command" = "init" ]]; then - # List of tuples - # github_repo docker_image - repos=( - "getumbrel/umbrel getumbrel/umbrel" - "getumbrel/umbrel-dashboard getumbrel/dashboard" - "getumbrel/umbrel-manager getumbrel/manager" - "getumbrel/umbrel-middleware getumbrel/middleware" - ) - if [[ "$(ls -A)" ]]; then echo "Working directory must be empty!" exit 1 @@ -106,6 +97,14 @@ if [[ "$command" = "init" ]]; then echo echo "Cloning container repositories..." + # List of tuples + # github_repo docker_image + repos=( + "getumbrel/umbrel getumbrel/umbrel" + "getumbrel/umbrel-dashboard getumbrel/dashboard" + "getumbrel/umbrel-manager getumbrel/manager" + "getumbrel/umbrel-middleware getumbrel/middleware" + ) for ((i = 0; i < ${#repos[@]}; i++)); do repo="${repos[$i]}" github_repo="$(echo $repo | cut -d' ' -f1)"