Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrading, bashmount exits with error if colorize is disabled #24

Open
jrvarma opened this issue Sep 8, 2020 · 1 comment
Open

Comments

@jrvarma
Copy link

jrvarma commented Sep 8, 2020

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=""
@jamielinux
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants