intro-skipper/install/install-dll.sh

28 lines
826 B
Bash
Raw Permalink Normal View History

2024-03-06 19:10:57 -05:00
if [ "$(uname)" == "Darwin" ]; then
# MacOS
if [ -d ~/.local/share/jellyfin/plugins/ ]; then
plugin=$(ls -d ~/.local/share/jellyfin/plugins/Intro\ Skipper* | sort -r | head -n 1 )
if [ -z "$plugin" ]; then
echo "Intro Skipper plugin not found!"
exit
fi
cp -f IntroSkipper*.dll \
"$plugin/IntroSkipper.dll"
2024-03-06 19:10:57 -05:00
else
echo "Jellyfin plugin directory not found!"
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Linux
if [ -d /var/lib/jellyfin/plugins/ ]; then
plugin=$(ls -d /var/lib/jellyfin/plugins/Intro\ Skipper* | sort -r | head -n 1 )
if [ -z "$plugin' ]; then
echo "Intro Skipper plugin not found!"
exit
fi
cp -f IntroSkipper*.dll \
"$plugin/IntroSkipper.dll"
2024-03-06 19:10:57 -05:00
else
echo "Jellyfin plugin directory not found!"
fi
fi