From 66219ba3688c13126bc8bc9d993377b2f22dafc0 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 1 Feb 2016 14:42:00 +0100 Subject: Implement proper indentation for tca options --- add_extbase_property.sh | 3 +++ 1 file changed, 3 insertions(+) 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',/ -- cgit