Commit ea871a62 authored by remy's avatar remy
Browse files

update sed wp regexp

parent 32e4867e
......@@ -65,11 +65,10 @@ usage="$0 [compare|init|check|clean|--help]\n\n
function remove_dyn_elems {
# listing of dynamic elements, depending on product solution
wp_regexp_arr=("search-form" "cropped")
wp_regexp_arr=('search-form' 'cropped' 's?ver=')
wp_regexp_plugin_wedevsprojectmanager="pusher.+ver="
wp_regexp_plugin_gravityform='ajax.php'
wp_regexp_plugin_calendar="\sid=\"today\""
wp_regexp_plugin_timetable='.css?ver='
wp_regexp_plugin_rsswidget="rsswidget"
wp_regexp_plugin_sfsi="sfsi_plugin_version"
gitlab_regexp_arr=("authenticity_token" "csrf-token")
......@@ -89,7 +88,7 @@ function remove_dyn_elems {
wp|wordpress )
for wp_regexp in ${wp_regexp_arr[@]}
do
sed -ri -e /$wp_regexp/d $name.index.html
sed -i -e /$wp_regexp/d $name.index.html
done
plugins_nl=$(echo $plugins | tr "," "\n")
for plugin in $plugins_nl
......@@ -107,9 +106,6 @@ function remove_dyn_elems {
"calendar" )
sed -ri -e /$wp_regexp_plugin_calendar/d $name.index.html
;;
"timetable" )
sed -i -e /$wp_regexp_plugin_timetable/d $name.index.html
;;
"sfsi" )
sed -i -e /$wp_regexp_plugin_sfsi/d $name.index.html
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment