File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,19 @@ echo "Checking package.json files in directories: ${dirs}"
59
59
needs_changes=0
60
60
for dir in ${dirs} ; do
61
61
echo " Checking package.json in ${dir} ..."
62
- original_content=$( cat " ${dir} /package.json" )
62
+ package_json=" ${dir} /package.json"
63
+ if [ ! -f " ${package_json} " ]; then
64
+ continue
65
+ fi
66
+ original_content=$( cat " ${package_json} " )
63
67
64
68
" ${update_package_json_directories} " " ${dir} "
65
69
" ${update_package_json_gypfile} " " ${dir} "
66
70
67
- new_content=$( cat " ${dir} /package.json " )
71
+ new_content=$( cat " ${package_json} " )
68
72
if [ " $original_content " != " $new_content " ]; then
69
73
echo " ERROR: package.json in ${dir} needs updates to directories and/or gypfile fields"
70
- git --no-pager diff " ${dir} /package.json "
74
+ git --no-pager diff " ${package_json} "
71
75
needs_changes=1
72
76
fi
73
77
done
You can’t perform that action at this time.
0 commit comments