From 36b30d2eac2df621c131ed39dcc07316291a09b0 Mon Sep 17 00:00:00 2001 From: Ivan Porozhnyy Date: Thu, 29 Aug 2019 16:44:12 +0300 Subject: fix wrong config path and not deleted empty files in bin/rr --- bin/rr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/rr') 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('Config file created!'); -- cgit v1.2.3