Skip to content

Instantly share code, notes, and snippets.

View sguillope's full-sized avatar

Sylvain Guillope sguillope

View GitHub Profile
#!/usr/bin/env bash
if [[ ! ( # any of the following are not true
# 1st arg is an existing regular file
-f "$1" &&
# ...and it has a .ipa extension
"${1##*.}" == "ipa" &&
# 2nd arg is an existing regular file
-f "$2" &&
# ...and it has an .mobileprovision extension