"Decide-in-editor" package conflict resolution strategy #2
1 changed files with 6 additions and 6 deletions
|
@ -4,12 +4,12 @@ log() {
|
||||||
local level="$1"
|
local level="$1"
|
||||||
local message="$2"
|
local message="$2"
|
||||||
|
|
||||||
if [ $level = fatal ]; then
|
if [ "$level" = fatal ]; then
|
||||||
printf "[tori] $(date "+%H:%M:%S"): $message\n" 1>&2
|
echo "[tori] $(date "+%H:%M:%S"): $message" 1>&2
|
||||||
elif [ $level = user ]; then
|
elif [ "$level" = user ]; then
|
||||||
printf "[tori] $(date "+%H:%M:%S"): $message\n" 1>&2
|
echo "[tori] $(date "+%H:%M:%S"): $message" 1>&2
|
||||||
elif [ -n "$DEBUG" ] && [ $level = debug ]; then
|
elif [ -n "$DEBUG" ] && [ "$level" = debug ]; then
|
||||||
printf "$(date "+%H:%M:%N") $message\n" 1>&2
|
echo "$(date "+%H:%M:%N") $message" 1>&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue