diff --git a/bin/updatePlugins.sh b/bin/updatePlugins.sh index 8d0f43fd5cc..a2b30ca3d34 100755 --- a/bin/updatePlugins.sh +++ b/bin/updatePlugins.sh @@ -2,10 +2,12 @@ set -e mydir=$(cd "${0%/*}" && pwd -P) || exit 1 cd "${mydir}"/.. -OUTDATED=$(npm outdated --depth=0 | awk '{print $1}' | grep '^ep_') || { +outdated_raw=$(pnpm --filter ep_etherpad-lite outdated --depth=0 2>&1) || true +OUTDATED=$(printf '%s\n' "$outdated_raw" | awk '{print $1}' | grep '^ep_' | grep -v '^ep_etherpad-lite$') || true +if [ -z "$OUTDATED" ]; then echo "All plugins are up-to-date" exit 0 -} +fi set -- ${OUTDATED} echo "Updating plugins: $*" -exec pnpm install "$@" +exec pnpm --filter ep_etherpad-lite update "$@"