diff options
author | elioat <elioat@tilde.institute> | 2024-06-09 19:57:10 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-06-09 19:57:10 -0400 |
commit | 252f3076873868dee5cec2b4b571b47673c1cf06 (patch) | |
tree | bba87ec8d8bcd8675081e00fb339d8b8118359ef /lua/chupacabra/repl | |
parent | 12c3b8c77758f2288c73ec3b4af9ad1f2171061f (diff) | |
download | tour-252f3076873868dee5cec2b4b571b47673c1cf06.tar.gz |
*
Diffstat (limited to 'lua/chupacabra/repl')
-rwxr-xr-x | lua/chupacabra/repl | 14 |
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 + |