fix "test: =: unary operator expected" error as one of the vars could be empty?
authorBjörn Jacke <bj@sernet.de>
Fri, 3 Dec 2010 11:13:07 +0000 (12:13 +0100)
committerBjörn Jacke <bj@sernet.de>
Fri, 3 Dec 2010 11:13:07 +0000 (12:13 +0100)
build_test.fns

index 9717770..b7649bd 100644 (file)
@@ -197,7 +197,7 @@ lock_file() {
                fi
 
                if test -f "$lckf"; then
-                       test $machine = $host || {
+                       test x$machine = x$host || {
                                echo "lock file $lckf is valid for other machine $machine"
                                return 1
                        }