Skip to content

Commit

Permalink
Fixed bug that nulls version info
Browse files Browse the repository at this point in the history
  • Loading branch information
rschoene authored Mar 15, 2018
1 parent 2a23f38 commit 0e952a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/firestarter_global_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def version_info(file,major_version,minor_version,version_info,build_date):
file.write("#define VERSION_MAJOR {}\n".format(major_version))
file.write("#define VERSION_MINOR {}\n".format(minor_version))
# "" for python2, "\"\"" for python3
if version_info is "" or "\"\"":
if version_info is "" or version_info is "\"\"":
file.write("#define VERSION_INFO \"\" //additional information, e.g. \"BETA\"\n")
else:
file.write("#define VERSION_INFO \"{}\" //additional information, e.g. \"BETA\"\n".format(' '+version_info.replace("\"","")))
Expand Down

0 comments on commit 0e952a1

Please sign in to comment.