login beacon 2>/dev/null

This commit is contained in:
xiongdian.me 2023-03-01 18:34:37 +08:00
parent 765f59ad49
commit 334622aa9f

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" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')" "$DOTFILES/tools/common.sh" apost_beacon "sys.login.root" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')" 2>/dev/null
else else
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.user" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')" "$DOTFILES/tools/common.sh" apost_beacon "sys.login.user" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')" 2>/dev/null
fi fi
fi fi
@ -174,4 +174,4 @@ dfs()
# clean # clean
unset i unset i
export DFS_INITED=1 export DFS_INITED=1