Browse Source
Current we check for various error codes with [ $x == "NN" ]. However '==' is not actually a correct operator for the [ (test) command. It should be either '=' for string comparison or '-eq' for integer comparison. It appears that the bash builtin version of test implements '==' though, so we were getting away with it, as long as /bin/sh was bash - or the testsuite generated no errors. This patch fixes the usage of test so that it should work on non-bash shells. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
David Gibson
14 years ago
committed by
Jon Loeliger
1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue