@@ -52,7 +52,7 @@ generate_mo() {
5252generate_css () {
5353 # You can not use --production because it creates the error "[BABEL]: Cannot find module 'browserslist'"
5454 yarn install --frozen-lockfile --non-interactive --silent
55- if [ -d ./public/ ]; then
55+ if [ -f ./bin/console ]; then
5656 git add --force public/themes/* /css/* .css || echo " No css file found, not adding to git repository"
5757 git add --force public/themes/* /css/* .css.map || echo " No css.map files found, not adding to git repository"
5858 else
@@ -67,7 +67,7 @@ generate_css() {
6767generate_js () {
6868 # You can not use --production because it creates the error "[BABEL]: Cannot find module 'browserslist'"
6969 yarn install --frozen-lockfile --non-interactive --silent
70- if [ -d ./public/ ]; then
70+ if [ -f ./bin/console ]; then
7171 git add --force public/js/dist/ || echo " No JS files found, not adding to git repository"
7272 else
7373 git add --force js/dist/ || echo " No JS files found, not adding to git repository"
@@ -103,7 +103,16 @@ set_version_in_composer() {
103103
104104reset_not_allowed_to_change_source_files () {
105105 # Source: https://stackoverflow.com/a/68019875/5155484
106- if [ -d ./public/ ]; then
106+
107+ if [ -f yarn-error.log ]; then
108+ rm -v yarn-error.log
109+ fi
110+
111+ # Source: https://stackoverflow.com/a/2196755/5155484
112+ echo " Cleaning ignored files"
113+ git clean -fdX
114+
115+ if [ -f ./bin/console ]; then
107116 CHANGED_FILES=" $( git diff phpmyadmin/$branch ..$newbranch --name-only -- ' ./*' ' :!README.rst' ' :!public/js/dist/*.js' ' :!public/js/dist/*.js.map' ' :!resources/locale/*.mo' ' :!public/themes/*.css' ' :!public/themes/*.css.map' ) "
108117 else
109118 CHANGED_FILES=" $( git diff phpmyadmin/$branch ..$newbranch --name-only -- ' ./*' ' :!README.rst' ' :!js/dist/*.js' ' :!js/dist/*.js.map' ' :!locale/*.mo' ' :!themes/*.css' ' :!themes/*.css.map' ) "
0 commit comments