@@ -113,7 +113,7 @@ fn_wallbash() {
113113 template_name=" ${template##*/ } "
114114 template_name=" ${template_name% .* } "
115115 # echo "${wallbashDirs[@]}"
116- dcolTemplate=$( find " ${wallbashDirs[@]} " -type f -path " */theme*" -name " ${template_name} .dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' )
116+ dcolTemplate=$( find -L " ${wallbashDirs[@]} " -type f -path " */theme*" -name " ${template_name} .dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' )
117117 if [[ -n " ${dcolTemplate} " ]]; then
118118 eval target_file=" $( head -1 " ${dcolTemplate} " | awk -F ' |' ' {print $1}' ) "
119119 exec_command=" $( head -1 " ${dcolTemplate} " | awk -F ' |' ' {print $2}' ) "
@@ -184,7 +184,7 @@ while [[ $# -gt 0 ]]; do
184184 source " ${dcol_colors} "
185185 shift 2
186186 else
187- dcol_colors=" $( find " ${dcolDir} " -type f -name " *.dcol" | shuf -n 1) "
187+ dcol_colors=" $( find -L " ${dcolDir} " -type f -name " *.dcol" | shuf -n 1) "
188188 printf " [Dcol Colors] %s\n" " ${dcol_colors} "
189189 shift
190190 fi
290290if [ " ${enableWallDcol} " -eq 0 ] && [[ " ${reload_flag} " -eq 1 ]]; then
291291
292292 print_log -sec " wallbash" -stat " apply ${dcol_mode} colors" " ${HYDE_THEME} theme"
293- mapfile -d ' ' -t deployList < <( find " ${HYDE_THEME_DIR} " -type f -name " *.theme" -print0)
293+ mapfile -d ' ' -t deployList < <( find -L " ${HYDE_THEME_DIR} " -type f -name " *.theme" -print0)
294294
295295 while read -r pKey; do
296- fKey=" $( find " ${HYDE_THEME_DIR} " -type f -name " $( basename " ${pKey% .dcol} .theme" ) " ) "
296+ fKey=" $( find -L " ${HYDE_THEME_DIR} " -type f -name " $( basename " ${pKey% .dcol} .theme" ) " ) "
297297 [ -z " ${fKey} " ] && deployList+=(" ${pKey} " )
298- done < <( find " ${wallbashDirs[@]} " -type f -path " */theme*" -name " *.dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' )
298+ done < <( find -L " ${wallbashDirs[@]} " -type f -path " */theme*" -name " *.dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' )
299299
300300 # Process templates in parallel
301301 parallel fn_wallbash ::: " ${deployList[@]} " || true
302302
303303elif [ " ${enableWallDcol} " -gt 0 ]; then
304304 print_log -sec " wallbash" -stat " apply ${dcol_mode} colors" " Wallbash theme"
305305 # This is the reason we avoid SPACES for the wallbash template names
306- find " ${wallbashDirs[@]} " -type f -path " */theme*" -name " *.dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' | parallel fn_wallbash {} || true
306+ find -L " ${wallbashDirs[@]} " -type f -path " */theme*" -name " *.dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' | parallel fn_wallbash {} || true
307307fi
308308
309309# Process "always" templates in parallel
310- find " ${wallbashDirs[@]} " -type f -path " */always*" -name " *.dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' | parallel fn_wallbash {} || true
310+ find -L " ${wallbashDirs[@]} " -type f -path " */always*" -name " *.dcol" 2> /dev/null | awk ' !seen[substr($0, match($0, /[^/]+$/))]++' | parallel fn_wallbash {} || true
0 commit comments