Fixed test of result of sudo()

This commit is contained in:
Aparajita Fishman
2012-04-10 18:42:26 -04:00
parent 5c0e079873
commit f4f4554cde
+2 -2
View File
@@ -488,14 +488,14 @@ global.copyManPage = function(/*String*/ name, /*int*/ section)
{
if (!FILE.isDirectory(manDir))
{
if (!sudo(["mkdir", "-p", "-m", "0755", manDir]))
if (sudo(["mkdir", "-p", "-m", "0755", manDir]))
{
stream.print("\0red(Unable to create the man directory.\0)");
OS.exit(1);
}
}
if (!sudo(["cp", "-f", pageFile, manDir]))
if (sudo(["cp", "-f", pageFile, manDir]))
stream.print("\0red(Unable to copy the man file.\0)");
}
}