Skip to content

Instantly share code, notes, and snippets.

@tlehman
Created November 20, 2012 00:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlehman/4115125 to your computer and use it in GitHub Desktop.
Save tlehman/4115125 to your computer and use it in GitHub Desktop.
Passbook uncompress to dir
#!/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