-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add PATH-PREFIX env and updare config-site.php
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4313d6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost perfect! One refinement would be great though. Instead of
if [[ ! -z "$PATH_PREFIX" ]];
I'd preferif [[ -v PATH_PREFIX ]];
AKA the positive logic.Also I wonder, if we fix the path in piler.js no matter what the previous value might be, shouldn't it be done with
$config['PATH_PREFIX']
, too? That is to run sed on $CONFIG_SITE_PHP after the if - fi block when you append it the PATH_PREFIX. Or we may just skip this, and let's hope that the user won't change the PATH_PREFIX more than once.