We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a45847 commit d296393Copy full SHA for d296393
.scripts/zip_mod.sh
@@ -57,6 +57,13 @@ MOD_NAME=$(jq -r '.name' info.json)
57
MOD_VERSION=$(jq -r '.version' info.json)
58
59
60
+# Validate the version string we're building
61
+if ! echo "${MOD_VERSION}" | grep -P --quiet '^(v)?\d+\.\d+\.\d+$'; then
62
+ echo "Bad version, needs to be (v)%u.%u.%u"
63
+ exit 1
64
+fi
65
+
66
67
### Prepare zip for Factorio native use and mod portal
68
### https://www.7-zip.org/download.html
69
name="${MOD_NAME}_${MOD_VERSION}"
0 commit comments