| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2011 Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2011 Chromium OS 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 # Sets script_root relative to this directory. | 7 # Sets script_root relative to this directory. |
| 8 | 8 |
| 9 # From platform/dev/host. | 9 # From platform/dev/host. |
| 10 if [ -f /etc/debian_chroot ]; then | 10 SCRIPT_ROOT="$(dirname "$(readlink -f "$0")")/../../../scripts" |
| 11 echo "Must be run from outside the chroot." 2> /dev/null | |
| 12 exit 1 | |
| 13 fi | |
| 14 | 11 |
| 15 SCRIPT_ROOT="$(dirname "$(readlink -f "$0")")/../../scripts" | |
| 16 | |
| OLD | NEW |