/ + support for .tar.xz
This commit is contained in:
@@ -80,10 +80,13 @@ deploy_file() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "${file_name_trg}:"
|
echo "${file_name_trg}:"
|
||||||
|
|
||||||
suffix=".zip"
|
suffix1=".zip"
|
||||||
if [[ ${file_name_src} == *$suffix ]] ; then
|
suffix=".tar.xz"
|
||||||
|
if [[ ${file_name_src} == *$suffix1 ]] ; then
|
||||||
# -o: overwrite without prompting
|
# -o: overwrite without prompting
|
||||||
unzip -o ${_src_path} -d ${_trg_path}
|
unzip -o ${_src_path} -d ${_trg_path}
|
||||||
|
elif [[ ${file_name_src} == *$suffix2 ]] ; then
|
||||||
|
tar -xf -o ${_src_path} -C ${_trg_path}
|
||||||
else
|
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}
|
||||||
@@ -416,7 +419,7 @@ if [ ${operation} == "dots+" ] ; then
|
|||||||
# sweet dark gtk theme
|
# sweet dark gtk theme
|
||||||
# https://github.com/EliverLara/Sweet
|
# https://github.com/EliverLara/Sweet
|
||||||
# https://github.com/EliverLara/Sweet/releases
|
# https://github.com/EliverLara/Sweet/releases
|
||||||
file_name=Sweet-Dark.zip
|
file_name=Sweet-Dark.tar.xz
|
||||||
file_path=/usr/share/themes
|
file_path=/usr/share/themes
|
||||||
deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive
|
deploy_file "${dotsplus_trg}/miscellaneous/${file_name}" "${file_path}/" chown recursive
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user