Skip to content

Commit

Permalink
update structure_mastg.sh script to include weaknesses directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cpholguera committed Aug 3, 2024
1 parent cf5bef8 commit 02c7476
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scripts/structure_mastg.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/bin/bash

directories=("tests" "techniques" "tools" "apps" "tests-beta" "demos" "rules")
mkdir -p docs/MASWE

directories=("tests" "techniques" "tools" "apps" "tests-beta" "demos" "rules" "weaknesses")

for dir in "${directories[@]}"; do
rm -rf "docs/MASTG/$dir"
cp -r "$dir" docs/MASTG/ || { echo "Failed to copy $dir"; exit 1; }
done

cp -r weaknesses/** docs/MASWE/ || { echo "Failed to copy weaknesses"; exit 1; }

cp -r Document/0x0*.md docs/MASTG
cp docs/MASTG/0x08b-Reference-Apps.md docs/MASTG/apps/index.md
cp docs/MASTG/0x08a-Testing-Tools.md docs/MASTG/tools/index.md
Expand Down

0 comments on commit 02c7476

Please sign in to comment.