telodendria/tools/lib/common.sh

17 lines
325 B
Bash
Raw Permalink Normal View History

2022-11-11 01:07:49 +00:00
#!/usr/bin/env sh
: "${PATCHES_ROOM:=!tyDHfIvAyfImrzOVVt:bancino.net}"
if [ -f "$(pwd)/.env" ]; then
. "$(pwd)/.env"
fi
if [ -z "$MXID" ]; then
MXID="@${USER}:$(hostname)"
fi
2023-03-01 03:11:10 +00:00
if [ -z "$DISPLAY_NAME" ] && which getent > /dev/null 2>&1; then
2022-11-11 01:07:49 +00:00
DISPLAY_NAME=$(getent passwd "$USER" | cut -d ':' -f 5 | cut -d ',' -f 1)
fi