We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
run.sh
1 parent f293f0d commit 2c9def0Copy full SHA for 2c9def0
linux/run.sh
@@ -18,7 +18,7 @@
18
19
# Check if Java is installed and the version is at least 17
20
if (( $(java -version 2>&1 | grep -Po '(?<=")[0-9]{2}') >= 17 )); then
21
- latest=$(ls -t CustomLauncherRewrite-*.jar | head -n1)
+ latest=$(find . -name "CustomLauncherRewrite-*.jar" -type f -printf "%T@ %p\n" | sort -nr | head -n1 | cut -d' ' -f2-)
22
java -jar "$latest"
23
else
24
if command -v notify-send &> /dev/null; then
0 commit comments