|
|
@ -4,8 +4,9 @@ if ! command -v path-wizard > /dev/null 2>&1; then |
|
|
|
read -p "ao-mud is not installed, install now? [y/n]: " choice |
|
|
|
read -p "ao-mud is not installed, install now? [y/n]: " choice |
|
|
|
|
|
|
|
|
|
|
|
if [ "$choice" = "y" ]; then |
|
|
|
if [ "$choice" = "y" ]; then |
|
|
|
chmod +x $0/spells/path-wizard |
|
|
|
SCRIPT_DIR=$(dirname "$0") |
|
|
|
path-wizard add $0/spells |
|
|
|
chmod +x $SCRIPT_DIR/spells/path-wizard |
|
|
|
|
|
|
|
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells |
|
|
|
echo "Your spellbook has been activated, please open a fresh terminal now." |
|
|
|
echo "Your spellbook has been activated, please open a fresh terminal now." |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
else |
|
|
|
else |
|
|
|