scripts/npm-audit-fix.sh: also fix the integration-test directory
MODIFY
scripts/npm-audit-fix.sh
scripts/npm-audit-fix.sh
+set -e
git clone https://github.com/AgoricBot/SES.git
cd SES
git remote add upstream https://github.com/Agoric/SES.git
@@ -16,12 +17,14 @@ fi
git checkout -b npm-audit-fix
-if npm audit ; then
- echo "Nothing to fix"
+for dir in . integration-test; do
+ if (cd "$dir" && npm audit) ; then
+ echo "Nothing to fix in $dir"
else
- npm audit fix
+ (cd "$dir" && npm audit fix)
files_changed=true
fi
+done
if [ "$files_changed" = true ] ; then
git add .

scripts/npm-audit-fix.sh: also fix the integration-test directory