All checks were successful
CI / skip-ci-check (pull_request) Successful in 1m35s
CI / lint-and-type-check (pull_request) Successful in 2m11s
CI / python-lint (pull_request) Successful in 1m58s
CI / test-backend (pull_request) Successful in 3m57s
CI / build (pull_request) Successful in 4m41s
CI / secret-scanning (pull_request) Successful in 1m42s
CI / dependency-scan (pull_request) Successful in 1m41s
CI / sast-scan (pull_request) Successful in 2m46s
CI / workflow-summary (pull_request) Successful in 1m33s
This commit adds blank lines to the end of several files, including pytest.ini, README.md, and various scripts in the viewer-frontend. These changes enhance the readability and maintainability of the codebase by ensuring consistent formatting.
20 lines
601 B
Bash
Executable File
20 lines
601 B
Bash
Executable File
#!/bin/bash
|
|
# Helper script to set LD_LIBRARY_PATH for Sharp before running commands
|
|
# This ensures Sharp can find its bundled libvips library
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
SHARP_LIB_PATH="$PROJECT_DIR/node_modules/sharp/node_modules/@img/sharp-libvips-linux-x64/lib"
|
|
|
|
if [ -d "$SHARP_LIB_PATH" ]; then
|
|
export LD_LIBRARY_PATH="$SHARP_LIB_PATH:${LD_LIBRARY_PATH:-}"
|
|
exec "$@"
|
|
else
|
|
echo "Warning: Sharp libvips library not found at $SHARP_LIB_PATH"
|
|
echo "Sharp image processing may not work correctly."
|
|
exec "$@"
|
|
fi
|
|
|
|
|
|
|