Commit a0378a8f authored by Sandeep Kadam's avatar Sandeep Kadam

VF Groups - Local build cleanup

parent e12f2392
#!/bin/bash
set -x
#set -x
# determine root of repo
ROOT=$(cd $(dirname ${0})/../.. 2>/dev/null && pwd -P);
cd ${ROOT};
......@@ -285,8 +285,21 @@ if ! [[ $who_id ]] ; then
echo "Taxonomy of WP_GROUP_WHO_TAXONOMY_SLUG doesn't exists, please check if correct taxonomy added in .env file & rerun setup";
exit 1;
fi
# WHAT Term
what_id="$(wp term list embl_taxonomy --slug=${WP_GROUP_WHAT_TAXONOMY_SLUG} --field=term_taxonomy_id)"
if ! [[ what_id ]] ; then
echo "Taxonomy of WP_GROUP_WHAT_TAXONOMY_SLUG doesn't exists, please check if correct taxonomy added in .env file & rerun setup";
exit 1;
fi
# WHERE Term
where_id="$(wp term list embl_taxonomy --slug=${WP_GROUP_WHERE_TAXONOMY_SLUG} --field=term_taxonomy_id)"
if ! [[ where_id ]] ; then
echo "Taxonomy of WP_GROUP_WHERE_TAXONOMY_SLUG doesn't exists, please check if correct taxonomy added in .env file & rerun setup";
exit 1;
fi
wp option update embl_taxonomy_term_who $who_id
wp option update embl_taxonomy_term_what $what_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment