diff --git a/bin/lunev b/bin/lunev new file mode 100644 index 0000000..76f8505 --- /dev/null +++ b/bin/lunev @@ -0,0 +1 @@ +lune --version diff --git a/bin/lunew b/bin/lunew new file mode 100644 index 0000000..68d69d8 --- /dev/null +++ b/bin/lunew @@ -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 $?