From 257cd027dff85f4326b7c8fb43075478a7d13105 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 15 Feb 2024 16:32:15 +0530 Subject: [PATCH] feat: include wrapper shell scripts --- bin/lunev | 1 + bin/lunew | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 bin/lunev create mode 100644 bin/lunew 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 $?