This commit is contained in:
DDSRem
2024-02-20 14:38:36 +08:00
parent 13bb31fd93
commit 6f6fd6a42e

3
update
View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
# shellcheck shell=bash # shellcheck shell=bash
# shellcheck disable=SC2086 # shellcheck disable=SC2086
# shellcheck disable=SC2144
# 下载及解压 # 下载及解压
download_and_unzip() { download_and_unzip() {
@ -8,7 +9,9 @@ download_and_unzip() {
target_dir="$2" target_dir="$2"
echo "正在下载 ${url}..." echo "正在下载 ${url}..."
if curl ${CURL_OPTIONS} "${url}" ${CURL_HEADERS} | busybox unzip -d /tmp -; then if curl ${CURL_OPTIONS} "${url}" ${CURL_HEADERS} | busybox unzip -d /tmp -; then
if [ -e /tmp/MoviePilot-* ]; then
mv /tmp/MoviePilot-* /tmp/"${target_dir}" mv /tmp/MoviePilot-* /tmp/"${target_dir}"
fi
else else
return 1 return 1
fi fi