Skip to content

Commit

Permalink
fix: Fixed release.sh, it was missing part of the path for master.
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Feb 6, 2021
1 parent 4825661 commit 9439dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SEARCH_PATTERN='(\s\"(manifest|download)\"\: \"https:\/\/github.com\/xdy\/twodsix-foundryvtt\/releases\/).*(\/(system.json|twodsix.zip)\",)'
DEVELOPMENT_REPLACE="\1download/v$1\3"
MASTER_REPLACE="\1latest\3"
MASTER_REPLACE="\1latest/download\3"

sed -i -e 's|\(.*"version"\): "\(.*\)",.*|\1: '"\"$1\",|" static/system.json &&
if echo "$1" | grep -q "development"; then sed -i -r s"~$SEARCH_PATTERN~$DEVELOPMENT_REPLACE~" static/system.json; else sed -i -r s"~$SEARCH_PATTERN~$MASTER_REPLACE~" static/system.json; fi &&
Expand Down

0 comments on commit 9439dd6

Please sign in to comment.