Passe launch.sh an

This commit is contained in:
Andreas Bielawski 2016-09-07 16:16:27 +02:00
parent e41bd82c38
commit ce9d689de6

View File

@ -1,15 +1,11 @@
# Run Brawlbot in Lua 5.3, if available. #!/bin/sh
# (Specifying lua5.3 because "lua" is not linked to it in Ubuntu 16.04.) # Run Brawlbot.
# Otherwise, use any generic installed Lua.
# If none, give an error and a friendly suggestion. # If none, give an error and a friendly suggestion.
# If Lua was found, restart Brawlbot five seconds after halting each time. # If Lua was found, restart Brawlbot five seconds after halting each time.
#!/bin/sh if type lua5.2 >/dev/null 2>/dev/null; then
# Ubuntu 16.04 seems to not link "lua" to lua5.3.
if type lua5.3 >/dev/null 2>/dev/null; then
while true; do while true; do
lua5.3 main.lua lua5.2 main.lua
echo "Brawlbot wurde angehalten. ^C zum Beenden." echo "Brawlbot wurde angehalten. ^C zum Beenden."
sleep 5s sleep 5s
done done