mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ fix: hardening commit_id.txt file (bis)
This commit is contained in:
parent
d89e84ee74
commit
f9939cf74c
@ -64,14 +64,14 @@ try
|
||||
$CommitID = ([string]($env:computername)).substring(0,[math]::min($length,8)).ToLower()
|
||||
}
|
||||
else {
|
||||
if (!$CommitID) { $CommitID = "---" }
|
||||
$CommitID = $CommitID -replace '"', ''
|
||||
$CommitID = $CommitID -replace "'", ''
|
||||
$length = $CommitID.length
|
||||
$CommitID = $CommitID.substring(0,[math]::min($length,8))
|
||||
}
|
||||
}
|
||||
if (!$CommitID) { $CommitID = "---" }
|
||||
$CommitID = $CommitID -replace '"', ''
|
||||
$CommitID = $CommitID -replace "'", ''
|
||||
if (!$CommitID) { $CommitID = "---" }
|
||||
$Build | Set-Content "Versions\build.txt"
|
||||
|
||||
$CompleteVer = "$Major.$Minor.$Revis.$Build"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user