mmozeiko / pkg2zip

Decrypts PlayStation Vita pkg file and packages to zip archive
The Unlicense
406 stars 89 forks source link

Add query option to query the file name #17

Closed pseiler closed 6 years ago

pseiler commented 6 years ago

It would be nice to add an parameter (f.e. -l) to output only the file name of outputted zip.

like

pkg2zip -l example_game.pkg
Example Game US PCSE001234.zip

So it can easily be scripted like this

#!/bin/bash
MY_FILE=$(pkgzip -l example_game.pkg)
pkg2zip example_game.pkg
mv $MY_FILE /new/destination
...
pseiler commented 6 years ago

Forgot to close this by myself. Maybe you'll have a look at my patch if the code quality is okay, since I'm not a real C programmer.