# -*- mode: Shell-script -*-
# name:read
# key:read
# --
read -p "Enter ${1:name}: " ${2:input}
if [[ -z $$2 ]]; then
echo "Error: $1 cannot be empty"
exit 1
fi