Fix build script inside docker
Remove sudo when the current user is root,  there is no sudo in most containers.
@@ -70,8 +70,13 @@ if ($status === 0) {
warn("Get extension info failed");
}
+if (getmyuid() !== 0) {
notice('Install the extension to your system requires root privileges');
-passthru("cd {$workSpace} && sudo make install");
+ $sudo = 'sudo';
+} else {
+ $sudo = '';
+}
+passthru("cd {$workSpace} && {$sudo} make install");
br();
ok('Do\'not forget to add \'extension=swow\' to your PHP ini');
