Chromium Code Reviews| Index: chrome/installer/mac/app/copy_to_disk.sh |
| diff --git a/chrome/installer/mac/app/copy_to_disk.sh b/chrome/installer/mac/app/copy_to_disk.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..32f6a967d3d500b7c2857efcdbd765eafd5d0624 |
| --- /dev/null |
| +++ b/chrome/installer/mac/app/copy_to_disk.sh |
| @@ -0,0 +1,13 @@ |
| +#!/bin/bash -p |
| + |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
|
Elly Fong-Jones
2016/08/16 14:59:42
This script should set -e and it can probably just
ivanhernandez
2016/08/16 17:18:38
I appended the e flag to -p. Also added comments t
|
| +# found in the LICENSE file. |
| + |
| +SRC=${1} |
| +DEST=${2} |
| +FULL_DEST=${3} |
| + |
| +rsync -lrpt "${SRC}" "${DEST}" >& /dev/null |
| +chown -Rh root:admin "${FULL_DEST}" >& /dev/null |
| +chmod -R a+rX,ug+w,o-w "${FULL_DEST}" >& /dev/null |