Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from NuCivic/fix-override-link
Browse files Browse the repository at this point in the history
Update overrides.php
  • Loading branch information
dkinzer authored Nov 4, 2016
2 parents bb57e22 + 181a20a commit 5104bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ahoy/site/.scripts/overrides.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

try {
$yaml = new Parser();
$overrides_make = $yaml->parse(file_get_contents(__DIR__ . '/../../../../config/overrides.make'));
$drupal_org_make = make_parse_info_file(realpath(__DIR__ . '/../../../../dkan/drupal-org.make'));
$overrides_make = $yaml->parse(file_get_contents(__DIR__ . '/../../../config/overrides.make'));
$drupal_org_make = make_parse_info_file(realpath(__DIR__ . '/../../../dkan/drupal-org.make'));

if (is_array($overrides_make) && is_array($drupal_org_make)) {
if (isset($overrides_make['projects']['drupal'])) {
Expand All @@ -22,7 +22,7 @@
}
$dumper = new Dumper();
$overriden_yaml = $dumper->dump($overrides_make, 4);
file_put_contents(__DIR__ . '/../../../../overriden_make.make', $overriden_yaml);
file_put_contents(__DIR__ . '/../../../overriden_make.make', $overriden_yaml);
}

} catch (Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion .ahoy/site/build.ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ commands:
usage: Overrides drupal-org.make with overrides.make
cmd: |
if [ -f config/overrides.make ]; then
cd .ahoy/site && composer install && cd ..
cd .ahoy/site && composer install && cd -
ahoy cmd-proxy drush php-script .ahoy/site/.scripts/overrides.php
# Check file exits and file not empty.
if [ -e overriden_make.make ] && [ -s overriden_make.make ]; then
Expand Down

0 comments on commit 5104bf0

Please sign in to comment.