fix: bug
This commit is contained in:
3
update
3
update
@ -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
|
||||||
|
Reference in New Issue
Block a user