Skip to content

Commit e0e94ba

Browse files
committed
Fix for #68
1 parent e38894d commit e0e94ba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dist/mospeed.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
java -Xmx768m -cp basicv2.jar:dist/basicv2.jar com.sixtyfour.cbmnative.shell.MoSpeedCL $@
1+
#!/bin/bash
2+
# Resolve the directory of this script
3+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
4+
5+
echo "Running from $SCRIPT_DIR"
6+
7+
# Run Java using classpath relative to the script's directory
8+
java -Xmx768m -cp "$SCRIPT_DIR/basicv2.jar:$SCRIPT_DIR/dist/basicv2.jar" com.sixtyfour.cbmnative.shell.MoSpeedCL "$@"
9+

0 commit comments

Comments
 (0)