BASH: if Variable -eq String not working
Here is the code in question
Code:
# Determine which release of Debian is Quote:
I just don't get it, I have racked my brain trying to figure out every combination of how I should write this if statement and I can't get it to work. What am I doing wrong and why is it wrong? Thanks |
In the context in which you are using this code, the -eq operator is expecting integers. Just use an = sign instead.
|
DOH! It is always something simple. Thanks for pointing that out. Sometimes you just don't see the simplest errors and need a 2nd set of eyes.
|
All times are GMT -5. The time now is 05:55 PM. |