summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2019-09-06 12:48:42 +0300
committerGitHub <[email protected]>2019-09-06 12:48:42 +0300
commit756a5a21cb4324c51ef44bd668c1c2f222aaa9b5 (patch)
tree5c664788dc4786857a78af2f2586e2abf35c21c7
parent49e002c11e5cc915d80efa58611f4c4a72de7bb2 (diff)
parent36b30d2eac2df621c131ed39dcc07316291a09b0 (diff)
Merge pull request #182 from Hunternnm/master
fix wrong config path and not deleted empty files in bin/rr
-rwxr-xr-xbin/rr4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rr b/bin/rr
index b62a9851..2f630d6a 100755
--- a/bin/rr
+++ b/bin/rr
@@ -224,7 +224,7 @@ class RRHelper
$progressBar = new ProgressBar($output);
$progressBar->setFormat('verbose');
- $zipFileName = tempnam('.', "rr_zip");
+ $zipFileName = 'rr_zip_'.random_int(0, 10000);
if (RRHelper::getOSType() == 'linux') {
$zipFileName .= '.tar.gz';
}
@@ -296,7 +296,7 @@ class RRHelper
}
copy(
- __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.rr.yaml',
+ __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.rr.yaml',
$input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml'
);
$output->writeln('<info>Config file created!</info>');