Skip to content

Commit

Permalink
fix: 7z gives priority to native commands
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jan 6, 2025
1 parent a28639c commit 052361e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 052361e

Please sign in to comment.