The test(1) command (also known as '[') does not use the '==' syntax for testing equality, which is a feature of bash's '[[' builtin. String equality is tested with '=', and numeric equality with '-eq'. This eliminates a series of warnings when running BuildLinux.sh on Debian-derived systems: [schwarzgerat](0) $ ./BuildLinux.sh -u ./linux.d/debian: line 39: [: ==: unary operator expected ./linux.d/debian: line 39: [: ==: unary operator expected ./linux.d/debian: line 42: [: ==: unary operator expected |
||
---|---|---|
.. | ||
debian | ||
fedora |