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