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