From f25eafd186985b3b86c67853f0631deb45afc4ea Mon Sep 17 00:00:00 2001 From: redxef Date: Sun, 19 Jan 2025 15:32:25 +0100 Subject: [PATCH] test: add option to startup script to not load the newest plugin. --- Test/test.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Test/test.sh b/Test/test.sh index a85c13a..0dccd9f 100755 --- a/Test/test.sh +++ b/Test/test.sh @@ -4,14 +4,16 @@ JELLYFIN=jellyfin/jellyfin set -eu cd "$(dirname "$0")" -pwd -( - cd ../Jellyfin.Plugin.SmartPlaylist/ - dotnet build -) -pwd mkdir -p ./cache ./media ./config/plugins/jellyfin-smart-playlist -cp ../Jellyfin.Plugin.SmartPlaylist/bin/Debug/net8.0/jellyfin-smart-playlist.dll ./config/plugins/jellyfin-smart-playlist/ +if [ "$#" -eq 1 ] && [ "$1" = '--skip-build' ]; then + : +else + ( + cd ../Jellyfin.Plugin.SmartPlaylist/ + dotnet build + ) + cp ../Jellyfin.Plugin.SmartPlaylist/bin/Debug/net8.0/jellyfin-smart-playlist.dll ./config/plugins/jellyfin-smart-playlist/ +fi docker pull "$JELLYFIN" docker run --rm --user "$(id -u):$(id -g)" \ -v ./cache:/cache \