I am missing something fundamental concerning either the bash's if construct/operators or string comparison. Consider the following script:
#!/bin/bash
baseSystem="testdir1"
testme="NA"
if [ "$baseSystem"=="$testme" ]; then
echo "In error case"
fi
if [ "$baseSystem"!="$testme" ]; then
echo "In error case"
fi
I get:
In error case
In error case
So it enters each case even though they should be mututally exclusive. Any help is appreciated.