From 46b01f05b3662634e32b73d74af7d1e6e5e48acd Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 13 Mar 2024 00:24:52 +0300 Subject: [PATCH] Archive : Fix local unarchive. --- module/common/bash/module/Archive.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/common/bash/module/Archive.sh b/module/common/bash/module/Archive.sh index f8c3746c..b1d416a4 100644 --- a/module/common/bash/module/Archive.sh +++ b/module/common/bash/module/Archive.sh @@ -246,16 +246,16 @@ function unarchive() { if [[ "${target//\\:/}" == *:* ]]; then local host="${target%%:*}" file="${target#*:}" - remote=("sudo" "ssh" "${host}") + remote=(sudo ssh ${host}) fi # Extract. case "${file##*.}" in "txz") - ${remote[@]} "pv -f" ${file} | xz -d | tar -xf - + ${remote[@]} pv -f ${file} | xz -d | tar -xf - ;; "tgz") - ${remote[@]} "pv -f" ${file} | gzip -d | tar -xf - + ${remote[@]} pv -f ${file} | gzip -d | tar -xf - ;; esac }