raffaelj / CpMultiplane

small PHP frontend for Cockpit CMS
MIT License
17 stars 3 forks source link

cli `update-htaccess` creates new line at end of file #26

Closed raffaelj closed 3 years ago

raffaelj commented 3 years ago

Running ./mp multiplane/update-htaccess creates new lines at the end of .htaccess after running it multiple times, which happens automatically when using composer update.

Solution 1: remove empty line at EOF in .htaccess.dist Solution 2 (cleaner): Don't use the whole dist file as replacement string, but only the text inside '/# BEGIN CpMultiplane.*# END CpMultiplane/s'

raffaelj commented 3 years ago

will be fixed after merging the permalink-update branch