Merge "Eliminate 'tr' in favor of inline bash."

This commit is contained in:
Jenkins 2014-05-06 13:30:46 +00:00 committed by Gerrit Code Review
commit 35d18b8a60

View File

@ -97,7 +97,7 @@ function first_boot_deprecated_message() {
function generate_hooks () { function generate_hooks () {
mkdir -p $TMP_HOOKS_PATH mkdir -p $TMP_HOOKS_PATH
for _ELEMENT in $IMAGE_ELEMENT ; do for _ELEMENT in $IMAGE_ELEMENT ; do
for dir in $(echo $ELEMENTS_PATH | tr ":" " ") ; do for dir in ${ELEMENTS_PATH//:/ } ; do
element_pre_check $dir/$_ELEMENT || continue element_pre_check $dir/$_ELEMENT || continue
cp -t $TMP_HOOKS_PATH -a $dir/$_ELEMENT/* ; cp -t $TMP_HOOKS_PATH -a $dir/$_ELEMENT/* ;
break break