summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Porozhnyy <[email protected]>2019-08-29 16:44:12 +0300
committerIvan Porozhnyy <[email protected]>2019-08-29 16:44:12 +0300
commit36b30d2eac2df621c131ed39dcc07316291a09b0 (patch)
tree5c664788dc4786857a78af2f2586e2abf35c21c7
parent49e002c11e5cc915d80efa58611f4c4a72de7bb2 (diff)
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>');