From 88b5290c9fbd0f0d3c61893f8c3a374cf9f8fc70 Mon Sep 17 00:00:00 2001 From: Floris den Hengst Date: Thu, 18 Sep 2025 14:33:04 +0200 Subject: [PATCH] Create setup.env in chip.sh if it does not exist This fixes #44 --- chip.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chip.sh b/chip.sh index 014f017..64ed452 100755 --- a/chip.sh +++ b/chip.sh @@ -18,6 +18,8 @@ rm /tmp/chiptemp core_modules=($(docker run --rm -v "${PWD}":/workdir mikefarah/yq '.* | key + ":" + .' core-modules.yaml)) +# If setup.env does not exist, create an empty setup.env +[ -f setup.env ] || touch setup.env > setup.env for module in ${modules[@]}; do name=${module%%:*} @@ -101,4 +103,4 @@ case $1 in echo "Please use either 'build', 'start', 'stop', 'clean', 'config', 'list', 'auto-completion', or call without args to generate the necessary configuration without doing anything else." echo "Add space-separated module names afterwards to perform the operation for specific modules." ;; -esac \ No newline at end of file +esac