Skip to content

Instantly share code, notes, and snippets.

View WhoJave's full-sized avatar
🏠
Working from home

WhoJave WhoJave

🏠
Working from home
View GitHub Profile
@WhoJave
WhoJave / resign.sh
Created May 23, 2017 04:06 — forked from RichardBronosky/resign.sh
A simple tool for resigning an iOS app ipa with a new certificate/mobileprovision
#!/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
@WhoJave
WhoJave / resign.sh
Created May 23, 2017 04:06 — forked from mcxiaoke/resign.sh
A simple tool for resigning an iOS app ipa with a new certificate/mobileprovision
#!/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