Revision 9375
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
236 | 236 |
{ |
237 | 237 |
# no local vars because w/o cmd, assignments should be applied to caller |
238 | 238 |
PS4="$(if test "$1" -gt 0; then echo "$(PS4_prefix_n)$PS4" |
239 |
else echo "${PS4:$1}"; fi)" \ |
|
239 |
else echo "${PS4: -$1}"; fi)" \
|
|
240 | 240 |
verbosity=$((verbosity - $1)) "${@:2}" |
241 | 241 |
} |
242 | 242 |
log-() { log+ $((-($1))); } |
Also available in: Unified diff
bugfix: lib/sh/util.sh: log+: PS4 when $1 < 0: need to negate $1 because now it's a negative number