[matter-scheduler] also do env-update && source /etc/profile

This commit is contained in:
Fabio Erculiani
2011-08-20 13:43:30 +02:00
parent 02fc5a5656
commit 15e11cc4ef

View File

@@ -17,6 +17,8 @@ cd "${PARTICLES_DIR}" || exit 1
git pull || exit 1
particles=$(find "${PARTICLES_DIR}" -name "*.particle" | xargs)
if [ -n "${particles}" ]; then
env-update
source /etc/profile
matter ${MATTER_ARGS} ${particles}
exit ${?}
fi