15 lines
292 B
Bash
15 lines
292 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Check if $name is set
|
||
|
if [[ -z "${name}" ]]; then
|
||
|
echo "Error: Variable \$name is not set. Exiting (displaycontroller.sh)."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cat <<EOM > admin/src/View/${name}/html/default.php
|
||
|
<?php defined('_JEXEC') or die('Restricted Access'); ?>
|
||
|
|
||
|
<h2>Hello ${name}!</h2>
|
||
|
|
||
|
EOM
|