summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-09 12:43:29 -0600
committermo khan <mo.khan@gmail.com>2020-03-09 12:43:29 -0600
commit3b40c9ada548dd4fdc06f8b056ebdfdd8026579f (patch)
treebbae532f90ec4cad2faadbbb978b2b710b8b295e
parent166b5ed7842f2175f26658921325f51ca1584a93 (diff)
Print input arguments when CI_DEBUG_TRACE is enabled
-rwxr-xr-xrun.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/run.sh b/run.sh
index 62e1ff6..b9a2299 100755
--- a/run.sh
+++ b/run.sh
@@ -3,8 +3,6 @@
set -e
[[ -z ${SETUP_CMD:-} ]] && set -uo pipefail
-cd "$2"
-
BUNDLE_JOBS="$(nproc)"
export BUNDLE_JOBS
export BUNDLE_WITHOUT="development:test"
@@ -20,6 +18,9 @@ export RUBY_HEAP_FREE_MIN=100000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_HEAP_SLOTS_INCREMENT=400000
+[[ $CI_DEBUG_TRACE == 'true' ]] && echo "$@"
+cd "$2"
+
function debug_env() {
pwd
ls -alh