feat: include wrapper shell scripts

This commit is contained in:
Erica Marigold 2024-02-15 16:32:15 +05:30 committed by GitHub
parent b08b8e7fdd
commit 257cd027df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

1
bin/lunev Normal file
View file

@ -0,0 +1 @@
lune --version

13
bin/lunew Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
lune=/usr/sbin/lune
if (( $(lune --version | cut -d ' ' -f 2 | cut -d '.' -f 2) >= 8 )); then
if [ -f "$1" ] || [ -f "$1.luau" ] || [ -f "$1.lua" ]; then
lune run "$@"
exit $?
fi
fi
lune "$@"
exit $?