+ zip support
This commit is contained in:
@@ -66,8 +66,13 @@ deploy_file() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "${file_name}:"
|
echo "${file_name}:"
|
||||||
|
|
||||||
|
suffix=".zip"
|
||||||
|
if [[ ${file_name} == *$suffix ]] ; then
|
||||||
|
unzip ${_src_path} -d ${_trg_path}
|
||||||
|
else
|
||||||
# -f (--force): overwrite without confirmation
|
# -f (--force): overwrite without confirmation
|
||||||
cp --force --recursive ${_src_path} ${_trg_path}
|
cp --force --recursive ${_src_path} ${_trg_path}
|
||||||
|
fi
|
||||||
|
|
||||||
# only chown if _no_chown variable is empty
|
# only chown if _no_chown variable is empty
|
||||||
if [[ ${_no_chown} != "no_chown" ]] ; then
|
if [[ ${_no_chown} != "no_chown" ]] ; then
|
||||||
@@ -252,10 +257,16 @@ if [ ${operation} == "dots+" ] ; then
|
|||||||
# vscodium theme
|
# vscodium theme
|
||||||
# https://vscodethemes.com/e/sdras.night-owl/night-owl-no-italics?language=javascript
|
# https://vscodethemes.com/e/sdras.night-owl/night-owl-no-italics?language=javascript
|
||||||
# https://github.com/sdras/night-owl-vscode-theme/tree/main/themes
|
# 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
|
file_path=/home/${user}/.vscode-oss/extensions
|
||||||
mkdir -p ${file_path}
|
mkdir -p ${file_path}
|
||||||
deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user