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