mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Improve readability of variable definition operations by writing one definition operation per line rather having multiple commands on a single line like 'VAR=val; export VAR'. Fixes #225.
12 lines
253 B
Bash
12 lines
253 B
Bash
# initialize compatibility version rather main version
|
|
MODULES_USE_COMPAT_VERSION=1
|
|
export MODULES_USE_COMPAT_VERSION
|
|
|
|
shell=$(@BASENAME@ $(@PS@ -p $$ -ocomm=))
|
|
|
|
if [ -f @initdir@/$shell ]; then
|
|
source @initdir@/$shell
|
|
else
|
|
source @initdir@/sh
|
|
fi
|