Skip to content

Commit

Permalink
Fixed test of result of sudo()
Browse files Browse the repository at this point in the history
  • Loading branch information
aparajita committed Apr 10, 2012
1 parent 5c0e079 commit f4f4554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.jake
Expand Up @@ -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)");
}
}
Expand Down

0 comments on commit f4f4554

Please sign in to comment.