diff options
-rwxr-xr-x | add_extbase_property.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/add_extbase_property.sh b/add_extbase_property.sh index 412768a..87cbca8 100755 --- a/add_extbase_property.sh +++ b/add_extbase_property.sh @@ -183,6 +183,9 @@ sql_type="${sql_types["$typ"]}" # TCA +# Add identation to tca_options. \1 is the backreference to the captured indentation of 'columns' +tca_options=$(echo "$tca_options" | sed "s/, '/,\\\\n\\\\1 '/g") + sed -i -f - $tca_file << EOF s/\('searchFields' => .*\),',/\1',/ s/\('searchFields.*\)',\$/\1,$field',/ |