-
-
Save anonymous/980e413a0b5a7a84652f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
serviceDir="C:\Path\To\VersionFile.txt" | |
targetVersion = "project=\"Node\" version=\"1.2.142.21205\" changeset=\"21205\" buildname=\"v2.3.333-Patches-ServiceFramework_20150312.1\"" | |
versionFileContents = File.foreach("#{serviceDir}\\RampNode.version").first | |
puts "#{targetVersion}" | |
puts "#{versionFileContents}" | |
#NOTE: These 2 lines print and appear to be identical! | |
if "#{versionFileContents}" == "#{targetVersion}" | |
puts "IT MATCHES" | |
else puts "NO MATCHING VERSION" | |
end | |
#NOTE: This "if" never matches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment