dotfiles/bin/lunew

14 lines
239 B
Text
Raw Permalink Normal View History

2024-02-15 11:02:15 +00:00
#!/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 $?