Skip to content
Snippets Groups Projects
Commit b6a93be4 authored by Bob Mottram's avatar Bob Mottram
Browse files

Improve interactive dialogs

parent f0d725c6
No related branches found
No related tags found
No related merge requests found
......@@ -163,8 +163,9 @@ function interactive_site_details {
# save the results in the config file
write_config_param "${site_name_upper}_DOMAIN_NAME" "$SITE_DOMAIN_NAME"
if [ $SITE_CODE ]; then
write_config_param "${site_name_upper}_CODE" "$SITE_CODE"
site_code_str="$SITE_CODE"
if [ ${#site_code_str} -gt 1 ]; then
write_config_param "${site_name_upper}_CODE" "${SITE_CODE}"
fi
}
......@@ -233,11 +234,11 @@ function interactive_site_details_with_title {
done
# save the results in the config file
write_config_param "$2" "${!SITE_TITLE}"
write_config_param "$3" "${!SITE_DOMAIN_NAME}"
write_config_param "$2" "${SITE_TITLE}"
write_config_param "$3" "${SITE_DOMAIN_NAME}"
site_code_str="$SITE_CODE"
if [ ${#site_code_str} -gt 1 ]; then
write_config_param "$4" "${!SITE_CODE}"
write_config_param "$4" "${SITE_CODE}"
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment