I noticed when running the script via a SSH console that it will fail to read the INI file and copy the new downloaded script over the old update_all.sh (since the path for that is also derived from $INI_PATH. Because of the way the INI path is captured, it misses the full/relative path, and since the script is running on /tmp it fails (mostly silently).
Just adding realpath there seems to fix everything.
I noticed when running the script via a SSH console that it will fail to read the INI file and copy the new downloaded script over the old
update_all.sh
(since the path for that is also derived from$INI_PATH
. Because of the way the INI path is captured, it misses the full/relative path, and since the script is running on/tmp
it fails (mostly silently).Just adding
realpath
there seems to fix everything.