Created
November 20, 2012 00:24
-
-
Save tlehman/4115125 to your computer and use it in GitHub Desktop.
Passbook uncompress to dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# pass_to_dir foo.pkpass | |
# unpacks the PKPass file in a directory called foo | |
echo "unpacking $1..." | |
zipfilename=$(echo $1 | sed 's/pkpass/zip/') | |
dirname=$(echo $1 | sed 's/\.pkpass//') | |
cp $1 $zipfilename | |
unzip $zipfilename -d $dirname | |
rm $zipfilename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment