jpsc wrote:Tried -u, it did not go exactly as planned
Yes, it was not a bug, it was an easteregg
No, you are right, it was a failure in my script.
Explanation: I don't use Steve's original Webfiles, I am using my own Webfiles so when extracting everything from the ZIP, my "web" folder would be overwritten with the original ones. So I inserted an option to override the extraction of a directory in the CumulusMXDistxxxx.zip file.
1. I make a copy of the original CumulusMXDistxxxx.zip into /tmp and removing the "override" folder
cp CumulusMXDistxxxx.zip /tmp/cumulusmx_update.zip
zip -d -q cumulusmx_update.zip *$OVERRIDE/*
2. I unzip this new ZIP file to the Original CumulusMX installation folder
unzip /tmp/cumulusmx_update.zip -d /home/pi/CumulusMX/
This will work, until the variable $OVERRIDE is being filled with a foldername. in my example "web"
zip -d -q cumulusmx_update.zip *web/*
but when you don't want to exclude a folder, this command looks like this
zip -d -q cumulusmx_update.zip */*
And the ZIP command will remove everything in this ZIP file, so you get the error "Zip file is empty"
finally you get it working when excluding the web folder(for example) if asked to and it will update your Installation.
Meanwhile I fixed this error and the next version will check if $OVERRIDE is empty or not.
Thank you for testing it.