mirror of
https://github.com/CompeyDev/dotfiles.git
synced 2024-12-12 04:40:37 +00:00
14 lines
239 B
Text
14 lines
239 B
Text
|
#!/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 $?
|