From 252f3076873868dee5cec2b4b571b47673c1cf06 Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 9 Jun 2024 19:57:10 -0400 Subject: * --- lua/chupacabra/repl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 + -- cgit 1.4.1-2-gfad0