1fe01c66fd
* Factor out plugin query. * Make idempotent. * Improve logging. * Install by symlinking to a parallel directory rather than cloning into `etherpad-lite/node_modules`.
14 lines
463 B
Bash
Executable file
14 lines
463 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
newline='
|
|
'
|
|
mydir=$(cd "${0%/*}" && pwd -P) || exit 1
|
|
cd "${mydir}/../../.."
|
|
pdir=$(cd .. && pwd -P) || exit 1
|
|
plugins=
|
|
for p in "" "&page=2" "&page=3"; do
|
|
curlOut=$(curl "https://api.github.com/users/ether/repos?per_page=100${p}") || exit 1
|
|
plugins=${plugins}${newline}$(printf %s\\n "${curlOut}" \
|
|
| sed -n -e 's;.*git@github.com:ether/\(ep_[^"]*\)\.git.*;\1;p');
|
|
done
|
|
printf %s\\n "${plugins}" | sort -u | grep -v '^[[:space:]]*$'
|