if [ -z $dir ]; then
echo "Error: you must provide a directory name"
exit
elsif [ -z $instance ]; then
elif [ -z $instance ]; then
echo "Error: you must provide an instance name"
fi
-