deicidus
2 years ago
1 changed files with 14 additions and 0 deletions
@ -1,3 +1,17 @@ |
|||||||
#!/bin/sh |
#!/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 |
||||||
|
chmod +x $0/spells/path-wizard |
||||||
|
path-wizard add $0/spells |
||||||
|
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 |
mud-menu |
||||||
|
Loading…
Reference in new issue