Skip to content

Commit

Permalink
show a warning in reset.sh if you're not on ios7
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Dec 19, 2013
1 parent 84549ed commit 9741c33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ reset_general() {

reset_ios() {
echo "RESETTING IOS"
set +e
sdk_ver=$(xcrun --sdk iphonesimulator --show-sdk-version 2>/dev/null)
sdk_status=$?
set -e
if [ $sdk_status -gt 0 ] || [[ "$sdk_ver" != "7."* ]]; then
echo "--------------------------------------------------"
echo "WARNING: you do not appear to have iOS7 SDK active"
echo "--------------------------------------------------"
fi
echo "* Cloning/updating ForceQuitUnresponsiveApps"
run_cmd git submodule update --init submodules/ForceQuitUnresponsiveApps
echo "* Building ForceQuitUnresponsiveApps"
Expand Down

0 comments on commit 9741c33

Please sign in to comment.