The Free Software Media System - Server Backend & API
Quote bash paths to prevent word splitting
joncrall59ed6ab8ea1c
diff --git a/deployment/build.centos.amd64 b/deployment/build.centos.amd64index 0374624d80..a0ab93e4e0 100755--- a/deployment/build.centos.amd64+++ b/deployment/build.centos.amd64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove BuildRequires for dotnet, since it's installed manually@@ -39,10 +39,10 @@ make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMSrpmbuild --rebuild -bb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm# Move the artifacts out-mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm ${ARTIFACT_DIR}/+mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"firm -f fedora/jellyfin*.tar.gz@@ -51,7 +51,7 @@ if [[ ${IS_DOCKER} == YES ]]; thenpushd fedoracp -a /tmp/spec.orig jellyfin.spec- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"popdfidiff --git a/deployment/build.debian.amd64 b/deployment/build.debian.amd64index 7e968192bb..1a59d02e91 100755--- a/deployment/build.debian.amd64+++ b/deployment/build.debian.amd64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove build-dep for dotnet-sdk-8.0, since it's installed manually@@ -32,12 +32,12 @@ fi# Build DEBdpkg-buildpackage -us -uc --pre-clean --post-clean-mkdir -p ${ARTIFACT_DIR}/-mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; thencp -a /tmp/control.orig debian/control- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.debian.arm64 b/deployment/build.debian.arm64index 7b7b603d63..e1e30fab4a 100755--- a/deployment/build.debian.arm64+++ b/deployment/build.debian.arm64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove build-dep for dotnet-sdk-8.0, since it's installed manually@@ -33,12 +33,12 @@ fiexport CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean-mkdir -p ${ARTIFACT_DIR}/-mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; thencp -a /tmp/control.orig debian/control- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.debian.armhf b/deployment/build.debian.armhfindex 3d894ba20e..e3e8ae004e 100755--- a/deployment/build.debian.armhf+++ b/deployment/build.debian.armhf@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove build-dep for dotnet-sdk-8.0, since it's installed manually@@ -33,12 +33,12 @@ fiexport CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean-mkdir -p ${ARTIFACT_DIR}/-mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; thencp -a /tmp/control.orig debian/control- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.fedora.amd64 b/deployment/build.fedora.amd64index 1b629289f0..da345ec08a 100755--- a/deployment/build.fedora.amd64+++ b/deployment/build.fedora.amd64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove BuildRequires for dotnet, since it's installed manually@@ -39,10 +39,10 @@ make -f fedora/Makefile srpm outdir=/root/rpmbuild/SRPMSrpmbuild -rb /root/rpmbuild/SRPMS/jellyfin-*.src.rpm# Move the artifacts out-mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm ${ARTIFACT_DIR}/+mv /root/rpmbuild/RPMS/x86_64/jellyfin-*.rpm /root/rpmbuild/SRPMS/jellyfin-*.src.rpm "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"firm -f fedora/jellyfin*.tar.gz@@ -51,7 +51,7 @@ if [[ ${IS_DOCKER} == YES ]]; thenpushd fedoracp -a /tmp/spec.orig jellyfin.spec- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"popdfidiff --git a/deployment/build.linux.amd64 b/deployment/build.linux.amd64index 05059e4edf..c6baa61f6e 100755--- a/deployment/build.linux.amd64+++ b/deployment/build.linux.amd64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-amd64.tar.gz -C dist jellyfin-server_$rm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.linux.amd64-musl b/deployment/build.linux.amd64-muslindex 0ee4b05fb3..6523f8319a 100755--- a/deployment/build.linux.amd64-musl+++ b/deployment/build.linux.amd64-musl@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-amd64-musl.tar.gz -C dist jellyfin-serrm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.linux.arm64 b/deployment/build.linux.arm64index 6e36db0eb8..6d6a8f803a 100755--- a/deployment/build.linux.arm64+++ b/deployment/build.linux.arm64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-arm64.tar.gz -C dist jellyfin-server_$rm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.linux.armhf b/deployment/build.linux.armhfindex f83eeebf1c..5167dfcb8d 100755--- a/deployment/build.linux.armhf+++ b/deployment/build.linux.armhf@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-armhf.tar.gz -C dist jellyfin-server_$rm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.linux.musl-linux-arm64 b/deployment/build.linux.musl-linux-arm64index 38826ae7fc..57980314d4 100755--- a/deployment/build.linux.musl-linux-arm64+++ b/deployment/build.linux.musl-linux-arm64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_linux-arm64-musl.tar.gz -C dist jellyfin-serrm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.macos.amd64 b/deployment/build.macos.amd64index eac3538771..c7711e82c7 100755--- a/deployment/build.macos.amd64+++ b/deployment/build.macos.amd64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_macos-amd64.tar.gz -C dist jellyfin-server_$rm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.macos.arm64 b/deployment/build.macos.arm64index 42da07e2f6..b07eaad4e0 100755--- a/deployment/build.macos.arm64+++ b/deployment/build.macos.arm64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_macos-arm64.tar.gz -C dist jellyfin-server_$rm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.portable b/deployment/build.portableindex 27e5e987fe..ec151d2956 100755--- a/deployment/build.portable+++ b/deployment/build.portable@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -21,11 +21,11 @@ tar -czf jellyfin-server_${version}_portable.tar.gz -C dist jellyfin-server_${verm -rf dist/jellyfin-server_${version}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv jellyfin[-_]*.tar.gz ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv jellyfin[-_]*.tar.gz "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.ubuntu.amd64 b/deployment/build.ubuntu.amd64index 5f25cb610f..17968a6e93 100755--- a/deployment/build.ubuntu.amd64+++ b/deployment/build.ubuntu.amd64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove build-dep for dotnet-sdk-8.0, since it's installed manually@@ -32,12 +32,12 @@ fi# Build DEBdpkg-buildpackage -us -uc --pre-clean --post-clean-mkdir -p ${ARTIFACT_DIR}/-mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; thencp -a /tmp/control.orig debian/control- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.ubuntu.arm64 b/deployment/build.ubuntu.arm64index 334ced9970..ee7da9bb98 100755--- a/deployment/build.ubuntu.arm64+++ b/deployment/build.ubuntu.arm64@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove build-dep for dotnet-sdk-8.0, since it's installed manually@@ -33,12 +33,12 @@ fiexport CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}dpkg-buildpackage -us -uc -a arm64 --pre-clean --post-clean-mkdir -p ${ARTIFACT_DIR}/-mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; thencp -a /tmp/control.orig debian/control- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.ubuntu.armhf b/deployment/build.ubuntu.armhfindex 77e33c3071..85c993282e 100755--- a/deployment/build.ubuntu.armhf+++ b/deployment/build.ubuntu.armhf@@ -6,7 +6,7 @@ set -o errexitset -o xtrace# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"if [[ ${IS_DOCKER} == YES ]]; then# Remove build-dep for dotnet-sdk-8.0, since it's installed manually@@ -33,12 +33,12 @@ fiexport CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean-mkdir -p ${ARTIFACT_DIR}/-mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; thencp -a /tmp/control.orig debian/control- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopddiff --git a/deployment/build.windows.amd64 b/deployment/build.windows.amd64index 0786358bd5..20f976365d 100755--- a/deployment/build.windows.amd64+++ b/deployment/build.windows.amd64@@ -11,7 +11,7 @@ NSSM_URL="http://files.evilt.win/nssm/${NSSM_VERSION}.zip"FFMPEG_URL="https://repo.jellyfin.org/releases/server/windows/ffmpeg/jellyfin-ffmpeg-portable_win64.zip";# Move to source directory-pushd ${SOURCE_DIR}+pushd "${SOURCE_DIR}"# Get versionif [[ ${IS_UNSTABLE} == 'yes' ]]; then@@ -42,11 +42,11 @@ popdrm -rf ${output_dir}# Move the artifacts out-mkdir -p ${ARTIFACT_DIR}/-mv dist/jellyfin[-_]*.zip ${ARTIFACT_DIR}/+mkdir -p "${ARTIFACT_DIR}/"+mv dist/jellyfin[-_]*.zip "${ARTIFACT_DIR}/"if [[ ${IS_DOCKER} == YES ]]; then- chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}+ chown -Rc $(stat -c %u:%g "${ARTIFACT_DIR}") "${ARTIFACT_DIR}"fipopd