File tree 1 file changed +5
-3
lines changed
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
93
93
exit 1
94
94
fi
95
95
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
98
100
99
101
# set parameters
100
102
Fav_Theme=" $1 "
@@ -148,7 +150,7 @@ print_prompt "Patching" -g " --// ${Fav_Theme} //-- " "from " -b "${Theme_Dir}\n
148
150
Fav_Theme_Dir=" ${Theme_Dir} /Configs/.config/hyde/themes/${Fav_Theme} "
149
151
[ ! -d " ${Fav_Theme_Dir} " ] && print_prompt -r " [ERROR] " " '${Fav_Theme_Dir} '" -y " Do not Exist" && exit 1
150
152
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}' )
152
154
restore_list=" "
153
155
154
156
while IFS= read -r fchk; do
You can’t perform that action at this time.
0 commit comments