login beacon add details

This commit is contained in:
xiongdian.me 2023-01-30 21:23:49 +08:00
parent 92914027fb
commit f7ec33fa3d

View File

@ -92,9 +92,9 @@ antigen apply
# beacon # beacon
if [[ -z "$DFS_INITED" && -z "$CI" ]]; then if [[ -z "$DFS_INITED" && -z "$CI" ]]; then
if [[ "$EUID" == "0" ]]; then if [[ "$EUID" == "0" ]]; then
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.root" "$DOTFILES/tools/common.sh" apost_beacon "sys.login.root" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')"
else else
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.user" "$DOTFILES/tools/common.sh" apost_beacon "sys.login.user" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')"
fi fi
fi fi