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.
20 lines
667 B
20 lines
667 B
#!/bin/sh |
|
|
|
if ! command -v path-wizard > /dev/null 2>&1; then |
|
read -p "ao-mud is not installed, install now? [y/n]: " choice |
|
|
|
if [ "$choice" = "y" ]; then |
|
SCRIPT_DIR=$(dirname "$0"); eval "cd \"$SCRIPT_DIR\" && pwd" |
|
chmod +x $SCRIPT_DIR/spells/path-wizard |
|
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells |
|
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/cantrips |
|
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/menu |
|
echo "Your spellbook has been activated, please open a fresh terminal now." |
|
exit 0 |
|
else |
|
echo "Ok, well the mud won't work until you install it by adding the spells directory to your PATH." |
|
exit 1 |
|
fi |
|
fi |
|
|
|
mud-menu
|
|
|