Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallison Batista authored and Hallison Batista committed Nov 9, 2010
1 parent c63ad19 commit 3854b67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions bin/btdoc
@@ -1,5 +1,6 @@
#!/usr/bin/env bash-toolbox
#$ Usage: btdoc [SCRIP_FILE] [OUTPUT]
#$ btdoc [OPTIONS]
#$
#$ Build Markdown documentation from source file comments.
#$
Expand Down
8 changes: 4 additions & 4 deletions lib/bash-toolbox/cli/btack.sh
Expand Up @@ -33,8 +33,8 @@ declare -x stack_file="${stack_file:-[Ss]tackfile}"
# Formats
#declare STACK_COMMAND="${STACK_COMMAND:-'* %-74s [busy]\\e[5D\\n'}"
#declare STACK_COMMAND="${STACK_COMMAND:-\e[G* %-72s [%03d/%03d]}"
declare STACK_COMMAND="${STACK_COMMAND:- > %-68s [%5s]\e[6D}"
declare STACK_STATUS="${STACK_STATUS:-* %-78s\n}"
declare STACK_COMMAND="${STACK_COMMAND:- > %-66s [%5s]\e[6D}"
declare STACK_STATUS="${STACK_STATUS:-* %-76s\n}"

# Aliases
alias no-errors='test ! "${stack_errors[*]}"'
Expand Down Expand Up @@ -109,10 +109,10 @@ function dump {
eval "command=\${${stack}[${i}]}"
eval "n=\${#${stack}[@]}"
test "${command%%:*}" == "stack_status" && {
printf "${STACK_STATUS}" "${command:13:78}"
printf "${STACK_STATUS}" "${command:13:76}"
} || {
status="busy"
printf "${STACK_COMMAND}" "${command:0:70}" "${status}"
printf "${STACK_COMMAND}" "${command:0:66}" "${status}"
pop ${command}
test ${stack_return} -gt 0 && status="error" || status="done"
printf "%5s\n" "${status}"
Expand Down

0 comments on commit 3854b67

Please sign in to comment.