File tree Expand file tree Collapse file tree
lib/solidus_dev_support/templates/extension/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -e
4+ if [ ! -z $DEBUG ]
5+ then
6+ set -x
7+ fi
48
59case " $DB " in
610postgres|postgresql)
Original file line number Diff line number Diff line change @@ -159,16 +159,18 @@ def sh(*args)
159159 Open3 . capture2e ( { 'CI' => nil } , command )
160160 end
161161
162- if status . success?
163- output . to_s
164- else
165- if $DEBUG
166- warn '~' * 80
167- warn "$ #{ command } "
168- warn output . to_s
169- end
162+ if $DEBUG || ENV [ 'DEBUG' ]
163+ warn '~' * 80
164+ warn "$ #{ command } "
165+ warn output . to_s
166+ warn "$ #{ command } ~~~~> EXIT STATUS: #{ status . exitstatus } "
167+ end
168+
169+ unless status . success?
170170 raise ( command_failed_error , "command failed: #{ command } \n #{ output } " )
171171 end
172+
173+ output . to_s
172174 end
173175
174176 def with_unbundled_env ( &block )
You can’t perform that action at this time.
0 commit comments