/ bugs fixed (i believe)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user