TheCatInABox Posted December 29, 2022 Share Posted December 29, 2022 Every restart, ResetID's comment `Default=` changes every restart, this is not an issue on its own, but it can be if it's sat on a github repository. The reason I have the server settings sat on a github repository is simple as, admins may need to interact with .ini and .lua files on the server, but they do not need ssh access. So this is a good medium. I have the server push its changed on restart in case in game settings change (and pull on startup), but it results in 1 commit every restart caused by `ResetID` comment changing. I can do a work around with `git diff --shortstat` and `awk`, but It would be awesome if this could be fixed. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted December 30, 2022 Share Posted December 30, 2022 The highlighted line is just an example comment? It doesn’t affect anything ingame and ensures no one has the same value. This isn’t a bug with the game. You could just do a commit if there’s greater than 1 change instead of any change to avoid this? Link to comment Share on other sites More sharing options...
TheCatInABox Posted December 30, 2022 Author Share Posted December 30, 2022 Yea, this *only* affects the resetid comment, no other comment in game changes on every restart. Just wanted to check if this is intentional/wont be fixed, as this might be an issue somebody else runs into later on. If somebody is looking at this issue in the future, a workaround using awk is: git diff --shortstat | awk '{if ($4 < 2 || $6 < 2) exit 1}' && some_other_command Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now