Quote:
Originally Posted by
RavinderSingh13
Hello Arun,
Could you please change if [[ $hn = "us" ]] to if [[ "$hn" == "us" ]] and let me know if this helps.
Thanks,
R. Singh
This isn't likely to help. (It will help if and only if
hostname aborts or returns a host name containing whitespace characters.)
The problem shown in the trace is that the operand passed to the script (
sun) is not a choice in the case statement. Therefore, the
client_home variable is never set and the following test to determine if
$client_home expands to the name of a directory gets a syntax error.
The change I suggested in post #2 in this thread short-circuits the problem by exiting immediately if
client_home will not be set by the given operand.