1#!/bin/bash 2############################################################################### 3# Copyright 2015 Google Inc. 4# 5# Use of this source code is governed by a BSD-style license that can be 6# found in the LICENSE file. 7############################################################################### 8# 9# ios_setup.sh: Sets environment variables used by other iOS scripts. 10 11set -x -e 12 13SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 14 15if ! command -v idevicefs 2>&1 > /dev/null; then 16 echo "no idevicefs; falling back to ifuse" 17 source $SCRIPT_DIR/ios_setup_ifuse.sh 18else 19 source $SCRIPT_DIR/ios_setup_idevicefs.sh 20fi 21