This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot-2/launch.sh

21 lines
607 B
Bash
Raw Normal View History

#!/bin/sh
2016-09-07 19:46:28 +02:00
# Run Mikubot.
2016-09-07 02:34:57 +02:00
# If none, give an error and a friendly suggestion.
2016-09-07 19:46:28 +02:00
# If Lua was found, restart Mikubot five seconds after halting each time.
2016-09-04 09:42:51 +02:00
2016-09-07 16:16:27 +02:00
if type lua5.2 >/dev/null 2>/dev/null; then
while true; do
2016-09-07 16:16:27 +02:00
lua5.2 main.lua
2016-09-07 19:46:28 +02:00
echo "Mikubot wurde angehalten. ^C zum Beenden."
sleep 5s
done
2016-09-07 02:34:57 +02:00
elif type lua >/dev/null 2>/dev/null; then
while true; do
lua main.lua
2016-09-07 19:46:28 +02:00
echo "Mikubot wurde angehalten. ^C zum Beenden."
2016-09-07 02:34:57 +02:00
sleep 5s
done
else
echo "Lua nicht gefunden."
echo "Falls du Ubuntu verwendest, führe vorher ./install-dependencies.sh aus."
2016-09-07 19:46:28 +02:00
fi