File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,19 @@ FLAGS=$1
20
20
N=3 # change this to control the concurrency level
21
21
22
22
printf ' %s\0' $CLI_HOME /../libs/* / | xargs -0 -n1 -P$N -I{} bash -c '
23
- if [ -f "{} /package.json" ]; then
24
- lib=$(basename {} )
23
+ if [ -f "$0 /package.json" ]; then
24
+ lib=$(basename $0 )
25
25
printf "${YELLOW}Installing packages for library: $lib! $FLAGS${RESET}\n"
26
- (cd {} && npm ci $FLAGS)
26
+ (cd $0 && npm ci $FLAGS)
27
27
fi
28
- '
28
+ ' {}
29
29
30
30
printf ' %s\0' $CLI_HOME /../archetypes/* / | xargs -0 -n1 -P$N -I{} bash -c '
31
- if [ -f "{} /package.json" ]; then
32
- archetype=$(basename {} )
31
+ if [ -f "$0 /package.json" ]; then
32
+ archetype=$(basename $0 )
33
33
printf "${YELLOW}Installing packages for archetype: $archetype! $FLAGS${RESET}\n"
34
- (cd {} && npm ci $FLAGS)
34
+ (cd $0 && npm ci $FLAGS)
35
35
fi
36
- '
36
+ ' {}
37
37
38
38
printf " ${GREEN} All library packages installed!${RESET} \n"
You can’t perform that action at this time.
0 commit comments