mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Last part of branch name only please
This commit is contained in:
1 parent
25f1ddac30
commit
1151d5c3e3
1 file changed
+1
-1
+1
-1
@@ -56,7 +56,7 @@ def main():
|
||||
print("Git not found")
|
||||
branch="none"
|
||||
else:
|
||||
branch=os.getenv("GIT_BRANCH")
|
||||
branch=os.getenv("GIT_BRANCH").rpartition('/')[2]
|
||||
|
||||
with open("fmlversion.properties","w") as f:
|
||||
f.write("%s=%s\n" %("fmlbuild.major.number",major))
|
||||
|
||||
Reference in new issue
Block a user