This PR contains a change in the pipe shell script, which allows to have argument values with spaces and other statements.
Motivation and Context
The change is motivated due to the recent change of the replace pipe, which accepts a lot more freedom. But the change would only allow running the pipe with direct curl call or other triggers.
The PR allows to call the following command:
./pipe -s http://localhost:4502 -b "root=/content/experience-fragments,type=cq:PageContent,criteria='@cq:template="/conf/myApp/settings/wcm/templates/experience-fragment-template" and @sling:resourceType="oldApp/components/structure/xfpage"',property=sling:resourceType,newValue=newApp/components/structure/xfpage"
How Has This Been Tested?
This has currently been tested with a debug option in the pipe shell script. It also has been tested altering the pipe script to use -F instead of -d option. see GH-195
Screenshots (if appropriate):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This PR contains a change in the pipe shell script, which allows to have argument values with spaces and other statements.
Motivation and Context
The change is motivated due to the recent change of the replace pipe, which accepts a lot more freedom. But the change would only allow running the pipe with direct curl call or other triggers.
The PR allows to call the following command:
./pipe -s http://localhost:4502 -b "root=/content/experience-fragments,type=cq:PageContent,criteria='@cq:template="/conf/myApp/settings/wcm/templates/experience-fragment-template" and @sling:resourceType="oldApp/components/structure/xfpage"',property=sling:resourceType,newValue=newApp/components/structure/xfpage"
How Has This Been Tested?
This has currently been tested with a debug option in the pipe shell script. It also has been tested altering the pipe script to use -F instead of -d option. see GH-195
Screenshots (if appropriate):
Types of changes
Checklist: