From 4014af31a544e057f6cfd13d43feb577f0539670 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Tue, 27 Aug 2024 16:13:06 -0500 Subject: [PATCH] / bugs fixed (i believe) --- scripts/99_deploy.sh | 86 +++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 46 deletions(-) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index a1d9add..d38c6a6 100755 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -79,10 +79,6 @@ deploy_file() { echo "" echo "${file_name_trg}:" -echo " _src_path: ${_src_path}" -echo " _trg_path: ${_trg_path}" -echo " file_name_src: ${file_name_src}" - suffix1=".zip" suffix2=".tar.xz" if [[ ${file_name_src} == *$suffix1 ]] ; then @@ -91,10 +87,8 @@ echo " file_name_src: ${file_name_src}" echo "_trg_path: ${_trg_path}" unzip -o ${_src_path} -d ${_trg_path} elif [[ ${file_name_src} == *$suffix2 ]] ; then - echo " TARING!" -# tar -xf ${_src_path} -C ${_trg_path} + tar -xf ${_src_path} -C ${_trg_path} else - echo " COPYING!" # -f (--force): overwrite without confirmation cp --force --recursive ${_src_path} ${_trg_path} fi @@ -397,44 +391,44 @@ if [ ${operation} == "dots+" ] ; then create_dir ${file_path} deploy_file "${dotsplus_trg}/fonts/install/*" "${file_path}/" -# # ---------- -# # images -# # ---------- -# file_path=/home/${system_user}/.local/share/img -# create_dir ${file_path} -# deploy_file "${dotsplus_trg}/images/*" "${file_path}/" -# -# # ---------- -# # wallpapers -# # ---------- -# file_path=/home/${system_user}/.local/share/wp -# create_dir ${file_path} -# deploy_file "${dotsplus_trg}/wallpapers/install/*" "${file_path}/" -# -# # ---------- -# # miscelanneous -# # ---------- -# -# # 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=night-owl-vscode-theme-main.zip -# file_path=/home/${system_user}/.vscode-oss/extensions -# create_dir ${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.tar.xz -# file_path=/usr/share/themes -# deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive -# -# # ---------- -# # chowning -# # ---------- -# share_dir=/home/${system_user}/.local/share -# chown ${system_user}:${system_user} ${share_dir} -# chown ${system_user}:${system_user} ${share_dir}/* + # ---------- + # images + # ---------- + file_path=/home/${system_user}/.local/share/img + create_dir ${file_path} + deploy_file "${dotsplus_trg}/images/*" "${file_path}/" + + # ---------- + # wallpapers + # ---------- + file_path=/home/${system_user}/.local/share/wp + create_dir ${file_path} + deploy_file "${dotsplus_trg}/wallpapers/install/*" "${file_path}/" + + # ---------- + # miscelanneous + # ---------- + + # 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=night-owl-vscode-theme-main.zip + file_path=/home/${system_user}/.vscode-oss/extensions + create_dir ${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.tar.xz + file_path=/usr/share/themes + deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive + + # ---------- + # chowning + # ---------- + share_dir=/home/${system_user}/.local/share + chown ${system_user}:${system_user} ${share_dir} + chown ${system_user}:${system_user} ${share_dir}/* fi