From caf28db78537cc5bc9c626526fc991c2aa0c414d Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 16 Feb 2026 19:59:01 +0100 Subject: [PATCH] added initialize script --- initialize.sh | 11 +++++++++++ update_child_repos.sh | 1 + 2 files changed, 12 insertions(+) create mode 100755 initialize.sh diff --git a/initialize.sh b/initialize.sh new file mode 100755 index 0000000..2198a3b --- /dev/null +++ b/initialize.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -euo pipefail + +if [ ! -f ".vars" ]; then + cp vars.example .vars +fi + +if [ ! -f "config.yaml" ]; then + cp config.yaml.example config.yaml +fi diff --git a/update_child_repos.sh b/update_child_repos.sh index da3966c..6d120b4 100755 --- a/update_child_repos.sh +++ b/update_child_repos.sh @@ -37,6 +37,7 @@ is_file_changed() { FILES_TO_UPDATE="${FILES_TO_UPDATE:-config.yaml.example deploy.sh +initialize.sh dockerfile main.go makefile