1234567891011121314151617181920212223242526 |
- #!/bin/bash
- # Set the directory containing your Lua dissector files
- DISSECTOR_DIR="./Dissector" # Change this if the directory is elsewhere
- # Set the output ZIP file name
- ZIP_FILE="exo_dissector_lua.zip"
- # Check if the Dissector directory exists
- if [ ! -d "$DISSECTOR_DIR" ]; then
- echo "Error: Dissector directory '$DISSECTOR_DIR' not found."
- exit 1
- fi
- # Create the ZIP file containing all Lua files from the Dissector directory
- echo "Creating ZIP file '$ZIP_FILE' from '$DISSECTOR_DIR'..."
- zip -r "$ZIP_FILE" "$DISSECTOR_DIR"/*.lua
- # Confirm the ZIP file was created
- if [ -f "$ZIP_FILE" ]; then
- echo "ZIP file '$ZIP_FILE' created successfully."
- else
- echo "Error: Failed to create the ZIP file."
- exit 1
- fi
|