#!/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 < admin/tmpl/${name}/default.php

Hello ${name}!

EOM