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

Commit

Permalink
Merge pull request #362 from wunderio/feature/drush-make-fail
Browse files Browse the repository at this point in the history
Drush fail on non-zero exit code.
  • Loading branch information
tharna committed Apr 19, 2021
2 parents ab56c13 + 7d2624d commit 94e5cbd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drupal/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,9 @@ class Maker:

# Execute a drush command
def drush_command(self, command):
drush_command = command.split(' ')

command_status = self._drush(drush_command, False)

if not command_status:
raise BuildError("Drush command failed")
drush_command = command.split(' ')
if not self._drush(drush_command, False):
raise BuildError("Drush command: '" + command + "' failed.")

def append(self, command):
files = command.split(">")
Expand Down

0 comments on commit 94e5cbd

Please sign in to comment.