PureDevOps Community

Zip error: Nothing to do

I have a zip file and I want to protect with password and i am trying like zip -r xyz.zip .

zip -er xyz.zip
Enter password:
Verify password:

zip error: Nothing to do! (Chromekey.zip)

What I Found is ,

If you used zip command on a already compressed zip file you will see that error. Make sure you are using zip on noncompressed file, otherwise use unzip