From: Joey Hess Date: Wed, 7 Jan 2009 16:54:45 +0000 (-0500) Subject: avoid creating subdir in noact mode X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/7cbacd59bf538bac9e5868a005be162b265e44d6 avoid creating subdir in noact mode --- diff --git a/webcheckout b/webcheckout index 1238172..4841fee 100755 --- a/webcheckout +++ b/webcheckout @@ -208,8 +208,10 @@ if (! @repos) { if (defined $destdir && @repos > 1) { # create subdirs of $destdir for the multiple repos - mkdir($destdir); - chdir($destdir) || die "failed to chdir to $destdir: $!"; + if (! $noact) { + mkdir($destdir); + chdir($destdir) || die "failed to chdir to $destdir: $!"; + } $destdir=undef; }