OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 ############################################################################### | 3 ############################################################################### |
4 # Copyright 2015 Google Inc. | 4 # Copyright 2015 Google Inc. |
5 # | 5 # |
6 # Use of this source code is governed by a BSD-style license that can be | 6 # Use of this source code is governed by a BSD-style license that can be |
7 # found in the LICENSE file. | 7 # found in the LICENSE file. |
8 ############################################################################### | 8 ############################################################################### |
9 # | |
10 # Check if ios path exists. | |
11 # | 9 # |
| 10 # Check if ios path exists. |
| 11 # |
| 12 |
| 13 set -x -e |
| 14 |
12 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 15 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
13 source $SCRIPT_DIR/ios_setup.sh | 16 source $SCRIPT_DIR/ios_setup.sh |
14 | 17 |
15 if [[ "$#" -ne "1" ]]; then | 18 if [[ "$#" -ne "1" ]]; then |
16 echo "Usage: ios_path_exists <path_in_Documents_folder_of_ios_device>" | 19 echo "Usage: ios_path_exists <path_in_Documents_folder_of_ios_device>" |
17 exit 1 | 20 exit 1 |
18 fi | 21 fi |
19 | 22 |
20 RET=ios_path_exists $1 | 23 RET=ios_path_exists $1 |
21 exit $RET | 24 exit $RET |
OLD | NEW |