Skip to content

Commit e8ac18a

Browse files
authored
Fix lib install script (#1717)
1 parent e8a7556 commit e8ac18a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

services/scripts/install_lib_packages.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ FLAGS=$1
2020
N=3 # change this to control the concurrency level
2121

2222
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)
2525
printf "${YELLOW}Installing packages for library: $lib! $FLAGS${RESET}\n"
26-
(cd {} && npm ci $FLAGS)
26+
(cd $0 && npm ci $FLAGS)
2727
fi
28-
'
28+
' {}
2929

3030
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)
3333
printf "${YELLOW}Installing packages for archetype: $archetype! $FLAGS${RESET}\n"
34-
(cd {} && npm ci $FLAGS)
34+
(cd $0 && npm ci $FLAGS)
3535
fi
36-
'
36+
' {}
3737

3838
printf "${GREEN}All library packages installed!${RESET}\n"

0 commit comments

Comments
 (0)