bashmount icon indicating copy to clipboard operation
bashmount copied to clipboard

After upgrading, bashmount exits with error if colorize is disabled

Open jrvarma opened this issue 5 years ago • 1 comments

I have been running bashmount for a long time with colorize disabled. After updating to 4.3.1 from a much older version, bashmount no longer runs with colorize='0'. I get the error:

line 213: BOLD: unbound variable

I find that in line 116-130, BOLD (and other variables) are being set only if colorize is enabled.

I got bashmount to work by adding an else clause is needed that sets all these variables to ""

else
        declare -r ALL_OFF=""
        declare -r BOLD=""    
        declare -r BLUE=""
        declare -r GREEN=""
        declare -r RED=""

jrvarma avatar Sep 08 '20 07:09 jrvarma

Thank you so much for reporting this!

I've fixed this in 4.3.2 so it should work as expected now when you set colourize=0.

jamielinux avatar Sep 08 '20 17:09 jamielinux