mirror of
https://github.com/CompeyDev/dotfiles.git
synced 2024-12-12 04:40:37 +00:00
feat: include wrapper shell scripts
This commit is contained in:
parent
b08b8e7fdd
commit
257cd027df
2 changed files with 14 additions and 0 deletions
1
bin/lunev
Normal file
1
bin/lunev
Normal file
|
@ -0,0 +1 @@
|
|||
lune --version
|
13
bin/lunew
Normal file
13
bin/lunew
Normal 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 $?
|
Loading…
Reference in a new issue