File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ if [[ -z $1 || -z $2 ]]; then
9393 exit 1
9494fi
9595
96- dcolDir=" ${confDir} /hyde/wallbash/Wall-Dcol"
97- [ ! -d " ${dcolDir} " ] && print_prompt " [ERROR]" " ${dcolDir} do not exist!" && exit 1
96+ dcolTheme=" Wall-Dcol"
97+ [[ -f " ${confDir} /hyde/wallbash/theme" ]] && dcolTheme=" theme"
98+ dcolDir=" ${confDir} /hyde/wallbash/${dcolDest} "
99+ [ ! -d " ${dcolDir} " ] && print_prompt " [ERROR]" " ${dcolTheme} do not exist!" && exit 1
98100
99101# set parameters
100102Fav_Theme=" $1 "
@@ -148,7 +150,7 @@ print_prompt "Patching" -g " --// ${Fav_Theme} //-- " "from " -b "${Theme_Dir}\n
148150Fav_Theme_Dir=" ${Theme_Dir} /Configs/.config/hyde/themes/${Fav_Theme} "
149151[ ! -d " ${Fav_Theme_Dir} " ] && print_prompt -r " [ERROR] " " '${Fav_Theme_Dir} '" -y " Do not Exist" && exit 1
150152
151- config=$( find " ${dcolDir} " -type f -name " *.dcol" | awk -v favTheme=" ${Fav_Theme} " -F ' Wall-Dcol /' ' {gsub(/\.dcol$/, ".theme"); print ".config/hyde/themes/" favTheme "/" $2}' )
153+ config=$( find " ${dcolDir} " -type f -name " *.dcol" | awk -v favTheme=" ${Fav_Theme} " -F ' $dcolTheme /' ' {gsub(/\.dcol$/, ".theme"); print ".config/hyde/themes/" favTheme "/" $2}' )
152154restore_list=" "
153155
154156while IFS= read -r fchk; do
You can’t perform that action at this time.
0 commit comments