diff options
author | Anton Titov <[email protected]> | 2019-09-06 12:48:42 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-06 12:48:42 +0300 |
commit | 756a5a21cb4324c51ef44bd668c1c2f222aaa9b5 (patch) | |
tree | 5c664788dc4786857a78af2f2586e2abf35c21c7 | |
parent | 49e002c11e5cc915d80efa58611f4c4a72de7bb2 (diff) | |
parent | 36b30d2eac2df621c131ed39dcc07316291a09b0 (diff) |
Merge pull request #182 from Hunternnm/master
fix wrong config path and not deleted empty files in bin/rr
-rwxr-xr-x | bin/rr | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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>'); |