I have a shell script where I unzip a zip file and its contents will always be one folder.
In my code I was assuming that the name of the zip file will be reflective of the folder name (e.g. folder named test will always be zipped as test.zip). Hence I was extracting the folder-name from the zip file.
I hit a roadblock where a folder called snaps was zipped as photos.zip. Now, if I extract the folder name from the zip file, it will be the wrong folder name.
How I can get the correct folder name snaps after unzipping photos.zip?