Commit ae3a25f7 authored by Alessandro Elias's avatar Alessandro Elias
Browse files

New directory, all scripts that helps others must be in here.


Signed-off-by: Alessandro Elias's avatarAlessandro Elias <ae11@c3sl.ufpr.br>
parent d185d317
[ -n "$QUIET" ] && return 0
set_quiet () {
if [ "x$QUIET" != "x1" ]; then
exec 6>&1 > "$LOG_FILE"
exec 7>&2 2> "$LOG_FILE"
QUIET=1
fi
}
unset_quiet () {
if [ "x$QUIET" == "x1" ]; then
exec 1>&6 6>&-
exec 2>&7 7>&-
exec 6>&2
QUIET=0
fi
}
pinfo () {
echo -e "\033[38;5;10m[info]\033[0m $TOOL_STR $@" >&6
}
perror () {
echo -e "\033[38;5;9m[error]\033[0m $TOOL_STR $@" >&6
qnd_exit
}
pwarning () {
echo -e "\033[38;5;11m[warning]\033[0m $TOOL_STR $@" >&6
}
pdebug () {
if [ "x$QUIET" = "x1" ]; then
echo -e "[DEBUG] $TOOL_STR $@" >&2
else
echo -e "\033[38;5;6m[debug]\033[0m $TOOL_STR $@" >&6
fi
}
exec 6>&2
QUIET=0
true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment