logs
This commit is contained in:
parent
b9158be284
commit
80463e9213
2 changed files with 9 additions and 5 deletions
|
@ -58,7 +58,10 @@ _sh_log() {
|
||||||
shift
|
shift
|
||||||
local line
|
local line
|
||||||
for line in "${@}"; do
|
for line in "${@}"; do
|
||||||
[ -n "${prefix}" ] && printf "%s" "${prefix} "
|
if [ -n "${prefix}" ]; then
|
||||||
echo "${line}"
|
_sh_main_log "${prefix} ${line}"
|
||||||
|
else
|
||||||
|
_sh_main_log "${line}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,9 +70,10 @@ _sh_main_commands() {
|
||||||
_sh_main_log() {
|
_sh_main_log() {
|
||||||
case "${-}" in
|
case "${-}" in
|
||||||
*i*)
|
*i*)
|
||||||
local argument
|
[ -n "${1}" ] || set -- ""
|
||||||
for argument in "${@}"; do
|
local line
|
||||||
echo "${argument}"
|
for line in "${@}"; do
|
||||||
|
echo "${line}"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
|
|
Loading…
Reference in a new issue