pad.libre-service.eu-etherpad/bin/updatePlugins.sh

12 lines
266 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -e
mydir=$(cd "${0%/*}" && pwd -P) || exit 1
cd "${mydir}"/..
OUTDATED=$(npm outdated --depth=0 | awk '{print $1}' | grep '^ep_') || {
echo "All plugins are up-to-date"
exit 0
}
set -- ${OUTDATED}
echo "Updating plugins: $*"
2024-03-13 20:31:29 +01:00
exec pnpm install "$@"