| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Called by the Keystone system to update the installed application with a new | 7 # Called by the Keystone system to update the installed application with a new |
| 8 # version from a disk image. | 8 # version from a disk image. |
| 9 | 9 |
| 10 # Return values: | 10 # Return values: |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 ([ ${OS_MAJOR} -eq 10 ] && [ ${OS_MINOR} -ge 6 ]) ; then | 654 ([ ${OS_MAJOR} -eq 10 ] && [ ${OS_MINOR} -ge 6 ]) ; then |
| 655 # On 10.6, xattr supports -r for recursive operation. | 655 # On 10.6, xattr supports -r for recursive operation. |
| 656 xattr -d -r "${QUARANTINE_ATTR}" "${DEST}" >& /dev/null | 656 xattr -d -r "${QUARANTINE_ATTR}" "${DEST}" >& /dev/null |
| 657 else | 657 else |
| 658 # On earlier systems, xattr doesn't support -r, so run xattr via find. | 658 # On earlier systems, xattr doesn't support -r, so run xattr via find. |
| 659 find "${DEST}" -exec xattr -d "${QUARANTINE_ATTR}" {} + >& /dev/null | 659 find "${DEST}" -exec xattr -d "${QUARANTINE_ATTR}" {} + >& /dev/null |
| 660 fi | 660 fi |
| 661 | 661 |
| 662 # Great success! | 662 # Great success! |
| 663 exit 0 | 663 exit 0 |
| OLD | NEW |