FOSCKEditorBundle icon indicating copy to clipboard operation
FOSCKEditorBundle copied to clipboard

ckeditor:install only runs when not same version

Open SimonHeimberg opened this issue 5 years ago • 0 comments

Feature Request

Please support running ckeditor:install --clear=skip-if-matching. This is is like --clear=skip if the tag/custom-build-id/... matches, and like --clear=drop (or --clear=keep?) else.

my work around for fixed tag:

in the auto-scripts, I run the following command:

"version=4.6.2 cmd='./bin/console ckeditor:install --quiet --clear=drop' sh -c 'if ! grep -qs version.*$version vendor/friendsofsymfony/ckeditor-bundle/src/Resources/public/package.json; then echo \" \" running $cmd --tag=$version; $cmd --tag=$version; fi'": "script"

the command more readable:

version=4.6.2 \
cmd='./bin/console ckeditor:install --quiet --clear=drop' \
sh -c '
    if ! grep -qs version.*$version vendor/friendsofsymfony/ckeditor-bundle/src/Resources/public/package.json;
        then echo \" \" running $cmd --tag=$version; $cmd --tag=$version;
    fi
'

SimonHeimberg avatar Nov 26 '19 10:11 SimonHeimberg