File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,8 @@ pull_all.sh ~/Work/coderabbitai
5
5
6
6
# go through all the directories in ~/Work/coderabbitai
7
7
# look for package.json files in the subdirectories
8
- for dir in ~ /Work/coderabbitai/* ; do
9
- if [ -d " $dir " ]; then
10
- # find all package.json files in the subdirectories
11
- package_json_files=$( find " $dir " -name package.json)
12
- for package_json_file in $package_json_files ; do
13
- # run pnpm install in the directory containing the package.json file
14
- pushd " $( dirname " $package_json_file " ) " > /dev/null || continue
15
- pnpm install
16
- popd > /dev/null || continue
17
- done
18
- fi
8
+ # and run pnpm install in those directories
9
+ find ~ /Work/coderabbitai -name package.json -exec dirname {} \; | while read dir; do
10
+ echo " Installing dependencies in $dir "
11
+ (cd $dir && pnpm install)
19
12
done
You can’t perform that action at this time.
0 commit comments