From 052361e36b6de3c094f3c33894dc202954f9f369 Mon Sep 17 00:00:00 2001 From: DDSRem <73049927+DDSRem@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:21:43 +0800 Subject: [PATCH] fix: 7z gives priority to native commands --- all_in_one.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/all_in_one.sh b/all_in_one.sh index 3e81d6539..6f2155e5d 100644 --- a/all_in_one.sh +++ b/all_in_one.sh @@ -1915,7 +1915,7 @@ function __unzip_metadata() { if ! check_metadata_size "${1}"; then exit 1 fi - if [[ "${OSNAME}" = "macos" ]] || command -v 7z > /dev/null 2>&1; then + if [[ "${OSNAME}" = "macos" ]]; then INFO "使用宿主机 7z 命令解压" if [ "${1}" == "config.mp4" ] || [ "${1}" == "config.new.mp4" ]; then if [ ! -d "${MEDIA_DIR}" ]; then @@ -2111,7 +2111,7 @@ function unzip_appoint_xiaoya_emby_jellyfin() { if ! check_metadata_size "${1}"; then exit 1 fi - if [[ "${OSNAME}" = "macos" ]] || command -v 7z > /dev/null 2>&1; then + if [[ "${OSNAME}" = "macos" ]]; then INFO "使用宿主机 7z 命令解压" if [ ! -d "${MEDIA_DIR}/xiaoya" ]; then mkdir -p "${MEDIA_DIR}/xiaoya"