Skip to content

Commit

Permalink
fix(script): rename.sh not splitting module name correctly (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica authored Aug 9, 2023
1 parent f620947 commit 9fc7e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

IFS='/' read -ra PARTS <<< "$MODULE_NAME"
USERNAME="${PARTS[0]}"
REPO="${PARTS[-1]}"
REPO="${PARTS[1]}"

# remove all generated proto files
find . -type f -name "*.pb.go" -delete
Expand All @@ -35,4 +35,4 @@ make proto-gen
echo "# This Cosmos SDK module was generated using <https://github.com/cosmosregistry/example>" > THANKS.md

# removes itself
rm scripts/rename.sh
rm scripts/rename.sh

0 comments on commit 9fc7e2a

Please sign in to comment.