diff --git a/unix/mkall.sh b/unix/mkall.sh index a1a27ae7..f0d6566f 100755 --- a/unix/mkall.sh +++ b/unix/mkall.sh @@ -45,7 +45,7 @@ case "$#" in exit 2 esac -if [[ "$GOOS" -eq "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then +if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then # Use then new build system # Files generated through docker (use $cmd so you can Ctl-C the build or run) $cmd docker build --tag generate:$GOOS $GOOS diff --git a/unix/mksyscall.pl b/unix/mksyscall.pl index eb4b56ff..fb929b4c 100755 --- a/unix/mksyscall.pl +++ b/unix/mksyscall.pl @@ -70,7 +70,7 @@ if($ARGV[0] =~ /^-/) { } # Check that we are using the new build system if we should -if($ENV{'GOOS'} eq "linux" || $ENV{'GOARCH'} ne "sparc64") { +if($ENV{'GOOS'} eq "linux" && $ENV{'GOARCH'} ne "sparc64") { if($ENV{'GOLANG_SYS_BUILD'} ne "docker") { print STDERR "In the new build system, mksyscall should not be called directly.\n"; print STDERR "See README.md\n";