mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fixed test of result of sudo()
This commit is contained in:
+2
-2
@@ -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)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user