about summary refs log tree commit diff stats
path: root/lua
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-06-09 19:57:10 -0400
committerelioat <elioat@tilde.institute>2024-06-09 19:57:10 -0400
commit252f3076873868dee5cec2b4b571b47673c1cf06 (patch)
treebba87ec8d8bcd8675081e00fb339d8b8118359ef /lua
parent12c3b8c77758f2288c73ec3b4af9ad1f2171061f (diff)
downloadtour-252f3076873868dee5cec2b4b571b47673c1cf06.tar.gz
*
Diffstat (limited to 'lua')
-rwxr-xr-xlua/chupacabra/repl14
1 files changed, 13 insertions, 1 deletions
diff --git a/lua/chupacabra/repl b/lua/chupacabra/repl
index 6cfaabc..aeefe4a 100755
--- a/lua/chupacabra/repl
+++ b/lua/chupacabra/repl
@@ -1,3 +1,15 @@
 #!/usr/bin/env sh
 
-rlwrap lua repl.lua
\ No newline at end of file
+if ! command -v lua &> /dev/null
+then
+    echo "lua is not installed"
+    exit
+fi
+
+if ! command -v rlwrap &> /dev/null
+then
+    lua repl.lua
+else 
+    rlwrap lua repl.lua
+fi
+