From a7a09478aa7f4824c20a0607ec63a7c41395dce0 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Tue, 27 Aug 2024 14:36:30 -0500 Subject: [PATCH] / + support for .tar.xz --- scripts/99_deploy.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index ea98b32..ca73a90 100755 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -80,10 +80,13 @@ deploy_file() { echo "" echo "${file_name_trg}:" - suffix=".zip" - if [[ ${file_name_src} == *$suffix ]] ; then + suffix1=".zip" + suffix=".tar.xz" + if [[ ${file_name_src} == *$suffix1 ]] ; then # -o: overwrite without prompting unzip -o ${_src_path} -d ${_trg_path} + elif [[ ${file_name_src} == *$suffix2 ]] ; then + tar -xf -o ${_src_path} -C ${_trg_path} else # -f (--force): overwrite without confirmation cp --force --recursive ${_src_path} ${_trg_path} @@ -416,7 +419,7 @@ if [ ${operation} == "dots+" ] ; then # sweet dark gtk theme # https://github.com/EliverLara/Sweet # https://github.com/EliverLara/Sweet/releases - file_name=Sweet-Dark.zip + file_name=Sweet-Dark.tar.xz file_path=/usr/share/themes deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive