#!/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