diff options
| author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-02-01 14:42:00 +0100 |
|---|---|---|
| committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-02-01 14:49:55 +0100 |
| commit | 66219ba3688c13126bc8bc9d993377b2f22dafc0 (patch) | |
| tree | cc59102e6b5f9d1dc8d0c1d122831ed960d59cf6 | |
| parent | 76cdd4d0bcbc4475549ae38acd1ac8241b683220 (diff) | |
| download | extbase-generator-cli-66219ba3688c13126bc8bc9d993377b2f22dafc0.tar.gz extbase-generator-cli-66219ba3688c13126bc8bc9d993377b2f22dafc0.tar.bz2 extbase-generator-cli-66219ba3688c13126bc8bc9d993377b2f22dafc0.zip | |
Implement proper indentation for tca 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',/ |
