| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 |
| 2 ############################################################################### | 3 ############################################################################### |
| 3 # Copyright 2015 Google Inc. | 4 # Copyright 2015 Google Inc. |
| 4 # | 5 # |
| 5 # 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 |
| 6 # found in the LICENSE file. | 7 # found in the LICENSE file. |
| 7 ############################################################################### | 8 ############################################################################### |
| 9 # |
| 10 # Writes the content of the file identified by the first argument to standard |
| 11 # output. The path is relative to the Documents directory of the installed app. |
| 12 # |
| 8 | 13 |
| 9 # Fail-fast if anything in the script fails. | 14 # Do not set -x here, since we only want the content of the file sent to |
| 15 # standard out. |
| 10 set -e | 16 set -e |
| 11 | 17 |
| 12 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 18 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 13 source $SCRIPT_DIR/ios_setup.sh | 19 source $SCRIPT_DIR/ios_setup.sh |
| 14 | 20 |
| 15 HOST_PATH=$1 | 21 ios_cat $1 |
| 16 DEVICE_PATH=$2 | |
| 17 | |
| 18 ios_push $HOST_PATH $DEVICE_PATH | |
| OLD | NEW |