[misc] fix listing of services for bin/ scripts

This commit is contained in:
Jakob Ackermann 2021-07-07 13:04:19 +01:00
parent 859252696b
commit a8ca0a896f
3 changed files with 10 additions and 6 deletions

View file

@ -2,8 +2,7 @@
set -e
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
node ./config/services.js | \
while read service
do
pushd $service

View file

@ -2,8 +2,7 @@
set -e
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
node ./config/services.js | \
while read service
do
pushd $service

View file

@ -55,3 +55,9 @@ module.exports = [
version: 'master',
},
]
if (require.main === module) {
for (const service of module.exports) {
console.log(service.name)
}
}