fix core
: -install did not place router file in certain conditions (did not match documentation)
This commit is contained in:
parent
2b7f459ef7
commit
ce470498de
1 changed files with 7 additions and 3 deletions
10
blueprint.sh
10
blueprint.sh
|
@ -757,7 +757,8 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
|
|||
fi
|
||||
|
||||
# Place routes directory.
|
||||
if [[ $requests_routers_application != "" ]] \
|
||||
if [[ $requests_routers != "" ]] \
|
||||
|| [[ $requests_routers_application != "" ]] \
|
||||
|| [[ $requests_routers_client != "" ]] \
|
||||
|| [[ $requests_routers_web != "" ]]; then
|
||||
PRINT INFO "Cloning and linking router files.."
|
||||
|
@ -779,10 +780,13 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
|
|||
} 2>> $BLUEPRINT__DEBUG
|
||||
fi
|
||||
|
||||
if [[ $requests_routers_web != "" ]]; then
|
||||
if [[ $requests_routers_web != "" ]] \
|
||||
|| [[ $requests_routers != "" ]]; then
|
||||
if [[ $requests_routers_web != "" ]]; then PLACEDIR="$requests_routers_web"; fi
|
||||
if [[ $requests_routers != "" ]]; then PLACEDIR="$requests_routers"; fi
|
||||
{
|
||||
rm "$FOLDER/routes/blueprint/web/$identifier.php"
|
||||
cp -R ".blueprint/tmp/$n/$requests_routers_web" ".blueprint/extensions/$identifier/routers/web.php"
|
||||
cp -R ".blueprint/tmp/$n/$PLACEDIR" ".blueprint/extensions/$identifier/routers/web.php"
|
||||
ln -s -r -T ".blueprint/extensions/$identifier/routers/web.php" "$FOLDER/routes/blueprint/web/$identifier.php"
|
||||
} 2>> $BLUEPRINT__DEBUG
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue