uenv crée le fichier .nutoolsrc

This commit is contained in:
Jephte CLAIN 2013-10-03 21:01:27 +04:00
parent e18ee2592c
commit 266cd9407f
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"