Eliminate 'tr' in favor of inline bash.

Updates the lib/common-functions generate_hooks() function
to use bash instead of exec'ing tr.

Change-Id: Ie32d3ce5c7c43affd0031a568d57763e36209603
This commit is contained in:
Dan Prince 2014-05-02 13:10:33 -04:00
parent d99d8092a7
commit 956acd5f59

View File

@ -97,7 +97,7 @@ function first_boot_deprecated_message() {
function generate_hooks () {
mkdir -p $TMP_HOOKS_PATH
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
cp -t $TMP_HOOKS_PATH -a $dir/$_ELEMENT/* ;
break