This repository has been archived by the owner on Jun 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·101 lines (88 loc) · 1.51 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#! /bin/bash
REPOS="ssb-about
ssb-avatar
ssb-backlinks
ssb-blobs
ssb-caps
ssb-serve-blobs
ssb-client
ssb-config
ssb-contacts
ssb-ebt
ssb-feed
ssb-friends
ssb-generate
ssb-irc
ssb-keys
ssb-links
ssb-markdown
ssb-marked
ssb-mentions
ssb-msg-schemas
ssb-msgs
ssb-names
ssb-private
ssb-query
ssb-reduce-stream
ssb-ref
ssb-search
ssb-secret-blob
ssb-sort
ssb-status
ssb-thread
ssb-viewer
ssb-validate
ssb-ws
scuttlebot
scuttlebot-release
secure-scuttlebutt
secret-stack
multiserver
multiserver-scopes
multiblob
muxrpc
packet-stream
react-native-scuttlebot
react-native-ssb-client
react-native-ssb-client-keys
react-native-ssb-shims
ssb-identities
"
AUTHORS="dominictarr mixmix cel ahdinosaur mmckegg staltz arj03 christianbundy cryp7ix regular"
function add () {
for R in $REPOS; do
OWNERS=$(npm owner ls $R | awk '{print $1}')
for A in $AUTHORS; do
echo $OWNERS | grep -o $A > /dev/null
IS_OWNER=$?
if [[ 0 == "$IS_OWNER" ]]; then
echo $A already owns $R
else
echo npm owner add $A $R
npm owner add $A $R
fi
done
done
}
function add_module () {
R=$1
OWNERS=$(npm owner ls $R | awk '{print $1}')
for A in $AUTHORS; do
echo $OWNERS | grep -o $A > /dev/null
IS_OWNER=$?
if [[ 0 == "$IS_OWNER" ]]; then
echo $A already owns $R
else
echo npm owner add $A $R
npm owner add $A $R
fi
done
}
function rm () {
AUTHOR_RM=$1
for R in $REPOS; do
echo npm owner rm $AUTHOR_RM $R
npm owner rm $AUTHOR_RM $R
done
}
"$@"