Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
loadconfig() {
CONFIG_FILE=local.params
+ CONFIG_DIR=local_config_dir
if [[ ! -s $CONFIG_FILE ]] ; then
echo "Must be run from initialized setup dir, maybe you need to 'initialize' first?"
fi
loadconfig
- set -x
+ if grep -rni 'fixme' ${CONFIG_FILE} ${CONFIG_DIR} ; then
+ echo
+ echo "Some parameters still need to be updated. Please fix them and then re-run deploy."
+ exit 1
+ fi
BRANCH=$(git branch --show-current)
+ set -x
+
git add -A
if ! git diff --cached --exit-code ; then
git commit -m"prepare for deploy"
exit 1
fi
-if grep -q 'fixme_or_this_wont_work' ${CONFIG_FILE} ; then
+if grep -rni 'fixme' ${CONFIG_FILE} ${CONFIG_DIR} ; then
echo >&2 "The config file ${CONFIG_FILE} has some parameters that need to be modified."
echo >&2 "Please, fix them and re-run the provision script."
exit 1