Merge "Eliminate 'tr' in favor of inline bash."
This commit is contained in:
commit
35d18b8a60
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user