Zip command not work in finalize.sh but work file in command line

I want to zip file record after stop recording
So I used finalize.sh, but it can not zip file record. When i use gzip, it works
There is my finalize.sh

  • Is the zip package installed?

  • No need to zip an MP4 file since it’s already zipped

Yes, i have installed zip
Zip work fine in command line, but not work in finalize.sh
i want to compress with zip to reduce more storage space

If this is a Dockerized setup, you need zip inside the container.
You cannot decrease the MP4 size (significantly) by zipping. Waste of CPU…

Thanks you for reply
I have another problem
How to zip inside a container