Revision 9543
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
256 | 256 |
if test "$1" -gt 0; then echo "$(str="${PS4:0:1}" n="$1" repeat)$PS4" |
257 | 257 |
else echo "${PS4:$((-$1))}" |
258 | 258 |
fi)" \ |
259 |
log_level="$(float+int "$log_level" "$1")" \
|
|
259 |
log_level=$((log_level+$1)) \
|
|
260 | 260 |
verbosity="$(float+int "$verbosity" "-$1")" "${@:2}" |
261 | 261 |
} |
262 | 262 |
log++() { log+ 1 "$@"; } |
Also available in: Unified diff
lib/sh/util.sh: log+(): log_level: set it using simpler $(()), since log_level will never be fractional (although verbosity can be). log_level may of course be fractional in invoked scripts, but that does not affect util.sh.