Browse Source

mud will install now

main
deicidus 2 years ago
parent
commit
fa6919956d
  1. 14
      mud

14
mud

@ -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…
Cancel
Save