chore: add comments to lune wrapper

This commit is contained in:
Erica Marigold 2024-01-15 13:53:05 +05:30 committed by GitHub
parent 91e3457b49
commit 838b2033d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
lunew
View file

@ -1,5 +1,13 @@
#!/bin/bash
#########################################################################
# A handy bash script which emulates pre 0.8 lune execution behavior. #
# This script checks if there is a lua(u) script at discoverable #
# paths, and if so, executes them with `lune run`, allowing for #
# implicit script execution as before. #
# USAGE: ./lunew [ARGS] [PARAMETERS] #
#########################################################################
lune=$(which lune)
if (( $(lune --version | cut -d ' ' -f 2 | cut -d '.' -f 2) >= 8 )); then