mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 12:46:53 +08:00
common.sh: post_log and post_beacon will check #args
This commit is contained in:
parent
fff6e08b72
commit
1de1b5b25b
|
@ -148,6 +148,7 @@ ask_for_Yn()
|
|||
|
||||
post_log()
|
||||
{
|
||||
test $# -eq 3 || fmt_fatal "usage: post_log <level> <section> <content>"
|
||||
"${DOTFILES}/tools/logger.sh" "log" "[$1][$2] $3"
|
||||
}
|
||||
|
||||
|
@ -158,6 +159,7 @@ apost_log()
|
|||
|
||||
post_beacon()
|
||||
{
|
||||
test $# -eq 1 || fmt_fatal "usage: post_beacon <beacon>"
|
||||
"${DOTFILES}/tools/logger.sh" "beacon" "$1"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user