Skip to content

Commit

Permalink
coderabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Nov 16, 2023
1 parent 4486403 commit 09a113c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## Create modules pages
for D in ../x/*; do
if [ -d "${D}" ]; then
DIR_NAME=$(echo $D | awk -F/ '{print $NF}')
DIR_NAME=$(basename "$D")

# Skip specific directories
if [ "$DIR_NAME" != "counter" ] && [ "$DIR_NAME" != "tx" ] && [ "$DIR_NAME" != "simulation" ]; then
MODDOC=build/modules/$DIR_NAME
rm -rf $MODDOC
mkdir -p $MODDOC && cp -r $D/README.md "$_"
if [[ "$DIR_NAME" != "counter" && "$DIR_NAME" != "tx" && "$DIR_NAME" != "simulation" ]]; then
MODULE_DIRECTORY=build/modules/$DIR_NAME
rm -rf "$MODULE_DIRECTORY"
mkdir -p "$MODULE_DIRECTORY" && cp -r "$D"/README.md "$MODULE_DIRECTORY"
fi
fi
done
Expand Down

0 comments on commit 09a113c

Please sign in to comment.