You've already forked Atomcms-edit
Fix: check if jar exists after mvn package, clear error message
This commit is contained in:
+7
-1
@@ -65,7 +65,13 @@ echo "--> Building Emulator with Maven..."
|
||||
mvn package
|
||||
|
||||
# Automatically detect the newly built .jar file
|
||||
JAR_FILE=$(basename "$(ls -t target/Habbo-*-jar-with-dependencies.jar 2>/dev/null | head -n 1)")
|
||||
JAR_PATTERN="target/Habbo-*-jar-with-dependencies.jar"
|
||||
JAR_FILE=$(basename "$(ls -t $JAR_PATTERN 2>/dev/null | head -n 1)")
|
||||
|
||||
if [ -z "$JAR_FILE" ]; then
|
||||
echo "=== ❌ Geen jar-bestand gevonden met pattern: $JAR_PATTERN ==="
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "--> Found jar file: $JAR_FILE"
|
||||
echo "--> Updating emulator launch file..."
|
||||
|
||||
Reference in New Issue
Block a user