Index: platform_tools/ios/bin/ios_cat_file |
diff --git a/platform_tools/ios/bin/ios_push_file b/platform_tools/ios/bin/ios_cat_file |
similarity index 61% |
copy from platform_tools/ios/bin/ios_push_file |
copy to platform_tools/ios/bin/ios_cat_file |
index 263b7c0a63f9c76ae8f3b7614308a365ce66846a..2e712ca96102b8f1fb00ae713ef51050a52caaa4 100755 |
--- a/platform_tools/ios/bin/ios_push_file |
+++ b/platform_tools/ios/bin/ios_cat_file |
@@ -1,18 +1,21 @@ |
#!/bin/bash |
+ |
############################################################################### |
# Copyright 2015 Google Inc. |
# |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
############################################################################### |
+# |
+# Writes the content of the file identified by the first argument to standard |
+# output. The path is relative to the Documents directory of the installed app. |
+# |
-# Fail-fast if anything in the script fails. |
+# Do not set -x here, since we only want the content of the file sent to |
+# standard out. |
set -e |
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
source $SCRIPT_DIR/ios_setup.sh |
-HOST_PATH=$1 |
-DEVICE_PATH=$2 |
- |
-ios_push $HOST_PATH $DEVICE_PATH |
+ios_cat $1 |