• Vincent Aranega's avatar
    Fix for terminology: does not fallback on ascii when no wallpaper is found · 8334fba3
    Vincent Aranega authored
    When no image is set and there is no background image (or a `.xml` is detected) and the image option is set to `wall` (default), neofetch does not fallback on ascii mode.
    The issue comes from the line 2310:
    
        if [ ! -f "$img" ] || [ ${#term_size} -le 5 ] && [ "$image_backend" != "tycat" ]; then
    
    as `||` and `&&` have the same priority, bash does not evaluate `[ ${#term_size} -le 5 ] && [ "$image_backend" != "tycat" ]` first.
    
    Solution is simply this
    
        if [ ! -f "$img" ] || ([ ${#term_size} -le 5 ] && [ "$image_backend" != "tycat" ]); then
    8334fba3
Name
Last commit
Last update
.github Loading commit data...
ascii/distro Loading commit data...
config Loading commit data...
.travis.yml Loading commit data...
1.8.md Loading commit data...
LICENSE.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
neofetch Loading commit data...
neofetch.1 Loading commit data...