potsky / laravel-localization-helpers

🎌 Artisan commands to generate and update lang files automatically
GNU General Public License v3.0
187 stars 38 forks source link

Problem with backup when dot is in path #20

Closed marvinschroeder closed 8 years ago

marvinschroeder commented 8 years ago

We have a DOCUMENT_ROOT structure where the domain name is part of the path. For example: /var/www/kd/domain.com/

When the command :missing is backup'ing the files, we get an Error Exception because the path is incorrect and the permission is denied. The path generated by your script (preg_match) is like: /var/www/kd/domain.20160129_151020.php

So i propose to change the generation of the backup directory with keeping in mind that there could be a doc root with a dot in the path.

potsky commented 8 years ago

Hi marvinschroeder,

Thank for reporting and fortunately you have a permission denied error !

I will check this right now and publish a fix.

potsky commented 8 years ago

Hi !

Ok it is fixed now, you can update the package with composer. Sorry for this ugly bug :-(

marvinschroeder commented 8 years ago

Thanks! It's working now! Great package!

potsky commented 8 years ago

Thank you!