Add option to run scripts in debug mode

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-05-13 22:31:06 -04:00
parent 16540a1dba
commit 7be1dccea7
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
8 changed files with 33 additions and 1 deletions

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail

View file

@ -15,7 +15,9 @@
# limitations under the License. # limitations under the License.
set -e set -e
set -x if ! [ -z $DEBUG ]; then
set -x
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"