aboutsummaryrefslogtreecommitdiff
path: root/.config/common_service.sh
blob: d1322cfb4fb8f3bd70bdfcd8b64d5270d5a57568 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env sh
: ${TURNSTILE_ENV_DIR:="${HOME}/.config/service-env"}

if [ ! -d "${TURNSTILE_ENV_DIR}" ]
then
	mkdir -p "${TURNSTILE_ENV_DIR}"
fi

if [ -f "/etc/profile" ]
then
	. "/etc/profile"
fi

if [ -d "/etc/profile.d/" ]
then
	for file in /etc/profile.d/*.sh
	do
		. "$file"
	done
fi

if [ -f "$HOME/.profile" ]
then
	. "$HOME/.profile"
fi