Skip to content

Commit

Permalink
Don't run scripts if not applying patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 17, 2005
1 parent f590edf commit 4f83c10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojopatch.c
Expand Up @@ -2163,6 +2163,9 @@ static int run_script(const char *name)
SpawnResult rc;
char cwd[MAX_PATH];

if (info_only()) /* don't run scripts unless applying a patch... */
return(1);

if (getcwd(cwd, sizeof (cwd)) == NULL)
{
_fatal("Couldn't determine current working directory!");
Expand Down

0 comments on commit 4f83c10

Please sign in to comment.