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
|
||||
local line
|
||||
for line in "${@}"; do
|
||||
[ -n "${prefix}" ] && printf "%s" "${prefix} "
|
||||
echo "${line}"
|
||||
if [ -n "${prefix}" ]; then
|
||||
_sh_main_log "${prefix} ${line}"
|
||||
else
|
||||
_sh_main_log "${line}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
|
@ -70,9 +70,10 @@ _sh_main_commands() {
|
|||
_sh_main_log() {
|
||||
case "${-}" in
|
||||
*i*)
|
||||
local argument
|
||||
for argument in "${@}"; do
|
||||
echo "${argument}"
|
||||
[ -n "${1}" ] || set -- ""
|
||||
local line
|
||||
for line in "${@}"; do
|
||||
echo "${line}"
|
||||
done
|
||||
;;
|
||||
*) ;;
|
||||
|
|
Loading…
Reference in a new issue