I have a script that creates a hash of a file, writes it to vars.txt and then checks that variable next time the script is run to determine if the file has changed.
When I run the script I call the variable with
This now gives me the following error when the file is parsed:
/opt/scripts/AutoCommit/vars.txt: line 2: etchttpdconf_dvhost.conf=925ec4d7bd0dc94c3710bcf5fb2c80f422806bb5 /etc/httpd/conf.d/vhost.conf: No such file or directory
On top of that, when the file changes
sed is now not replacing the line but adding an additional line underneath. It had not done this in the past.
You get a file that ends up like this. Until recently this did not happen so I suspect they are both caused by the same issue.