Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The 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 echo "Modifying image for factory test..." | 7 echo "Modifying image for factory test..." |
| 8 set -e | |
| 8 | 9 |
| 9 for SCRIPT in \ | 10 SCRIPT_BASE="${GCLIENT_ROOT}/src/scripts/mod_for_factory_scripts/" |
| 10 ${GCLIENT_ROOT}/src/scripts/mod_for_factory_scripts/[0-9][0-9][0-9]*[!$~] | 11 for SCRIPT in "${SCRIPT_BASE}"[0-9][0-9][0-9]*[!$~] |
|
Tom Wai-Hong Tam
2010/11/18 04:25:50
How about quote the whole pattern, like "${SCRIPT_
Hung-Te
2010/11/18 05:49:31
You can't do that. * in quote won't be expanded.
| |
| 11 do | 12 do |
| 12 ${SCRIPT} | 13 echo "Apply $(basename "${SCRIPT}")..." |
| 14 "${SCRIPT}" | |
| 13 done | 15 done |
| OLD | NEW |