summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-11-04 10:50:05 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-11-04 10:50:05 (GMT)
commit85f98147f57b3001282fc0365be245b9c81a3a16 (patch)
tree5f5287226ebc2039b016deff29eea450409c900f /scripts/functions
parent5ffc9ecd10dec73024f8e7f3815c7b2f0851ba56 (diff)
parentb2f8afef8532247c60764fffc938898903c06a4c (diff)
Merge pull request #233 from stilor/fix-build-all
Fix build-all
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index 8665346..2261b8d 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -14,7 +14,7 @@ CT_OnError() {
# To avoid printing the backtace for each sub-shell
# up to the top-level, just remember we've dumped it
if [ ! -f "${CT_WORK_DIR}/backtrace" ]; then
- touch "${CT_WORK_DIR}/backtrace"
+ [ -d "${CT_WORK_DIR}" ] && touch "${CT_WORK_DIR}/backtrace"
# Print steps backtrace
step_depth=${CT_STEP_COUNT}
@@ -178,7 +178,7 @@ CT_DoLog() {
if [ $# -eq 0 ]; then
cat -
else
- printf "%s\n" "${*}"
+ echo -e "${*}"
fi |( IFS="${CR}" # We want the full lines, even leading spaces
_prog_bar_cpt=0
_prog_bar[0]='/'