From ce1a4a0ca86ed79c7f077b52d32994d3fef62bf9 Mon Sep 17 00:00:00 2001 From: committer Date: Wed, 15 May 2024 17:00:57 -0500 Subject: [PATCH] + zip support --- scripts/99_deploy.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 3f83f46..143cdd9 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -66,8 +66,13 @@ deploy_file() { echo "" echo "${file_name}:" - # -f (--force): overwrite without confirmation - cp --force --recursive ${_src_path} ${_trg_path} + suffix=".zip" + if [[ ${file_name} == *$suffix ]] ; then + unzip ${_src_path} -d ${_trg_path} + else + # -f (--force): overwrite without confirmation + cp --force --recursive ${_src_path} ${_trg_path} + fi # only chown if _no_chown variable is empty if [[ ${_no_chown} != "no_chown" ]] ; then @@ -252,10 +257,16 @@ if [ ${operation} == "dots+" ] ; then # vscodium theme # https://vscodethemes.com/e/sdras.night-owl/night-owl-no-italics?language=javascript # https://github.com/sdras/night-owl-vscode-theme/tree/main/themes - file_name=sdras.night-owl-2.0.1-universal + file_name=sdras.night-owl-2.0.1-universal.zip file_path=/home/${user}/.vscode-oss/extensions mkdir -p ${file_path} deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive + # sweet dark gtk theme + # https://github.com/EliverLara/Sweet + # https://github.com/EliverLara/Sweet/releases + file_name=Sweet-Dark.zip + file_path=/usr/share/themes + deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive fi