ao-mud is a spellbook of well-commented atomic bash scripts that each do one thing. we are building semantic building blocks for an autonomously-evolving digital spellcasting language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
458 B

#!/usr/bin/env sh
# Asks the user if they are a wizard and exports an environment variable with the result
# Todo next: Add remember/recall functions so that wizard status is remembered after first ask
check_wizard() {
ask_Yn WIZARD "First, let me ask, are you a wizard?"
export "WIZARD=$WIZARD"
}
# Check if the script is being called from another script
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
# If not, call the function
check_wizard "$@"
fi