#!/bin/bash current_date=$(date +'%B %Y') current_year=$(date +'%Y') # Check if JOOMLA_USER is set, otherwise prompt for it if [ -z "$JOOMLA_USER" ]; then read -p "Enter the Joomla user: " JOOMLA_USER fi # Check if EMAIL is set, otherwise prompt for it if [ -z "$EMAIL" ]; then read -p "Enter the email address: " EMAIL fi cat < ${name}.xml ${name} ${current_date} ${JOOMLA_USER} ${EMAIL} https://www.example.com/ Copyright (C) ${current_year} ${JOOMLA_USER}, All rights reserved. GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html 0.0.1 COM_${name^^}_DESCRIPTION harvst\Component\\${name} ${name} language services src tmpl language/en-GB/en-GB.com_${name}.ini EOM