diff --git a/server/scripts/launch-all.sh b/server/scripts/launch-all.sh index 8a444d1..71e77d1 100755 --- a/server/scripts/launch-all.sh +++ b/server/scripts/launch-all.sh @@ -34,7 +34,8 @@ printf "\n${SECTION}* Updating and launching plugins...$RESET\n\n" PLUGINS_PATH=${PLUGINS_PATH:-../RustyController-plugins} -mkdir -p /var/log/rusty-controller/plugins/ && cd "$PLUGINS_PATH" && git pull && bash run-all.sh +# Run plugins only if outdated +mkdir -p /var/log/rusty-controller/plugins/ && cd "$PLUGINS_PATH" && git remote update && git status -uno | grep -q 'Your branch is behind' && git pull && bash run-all.sh echo -e "\n${SUCCESS}* Finished! (at $(date))$RESET" echo