Merge branch 'master' of vcs.univ.run:modules/nutools

This commit is contained in:
Jephté Clain 2013-10-07 08:41:23 +04:00
commit 0ee8fb1f08
1 changed files with 7 additions and 0 deletions

7
uenv
View File

@ -37,6 +37,7 @@ parse_opts "${PRETTYOPTS[@]}" \
@ args -- "$@" && set -- "${args[@]}" || die "$args" @ args -- "$@" && set -- "${args[@]}" || die "$args"
if [[ "$1" == HOME=* ]]; then if [[ "$1" == HOME=* ]]; then
export HOME
eval "$1" eval "$1"
shift shift
fi fi
@ -57,6 +58,12 @@ elif [ -n "$update" -a -z "$*" ]; then
set -- "$scriptdir" set -- "$scriptdir"
fi fi
# copier le fichier .nutoolsrc
[ -f ~/.nutoolsrc ] || {
estep "Copie de ~/.nutoolsrc"
cp "$scriptdir/lib/nutoolsrc" ~/.nutoolsrc
}
if [ -n "$update" ]; then if [ -n "$update" ]; then
## Vérifier les profils ## Vérifier les profils
uenv_configure_profiles "$scriptdir" uenv_configure_profiles "$scriptdir"