This works on the command line:
cp target/{sitemap.xml,robots.txt} ../fs-dtest-app/
But if I put the command inside a script tag in package.json
like this:
"scripts": {
"c": "cp target/{sitemap.xml,robots.txt} ../fs-dtest-app/"
},
This happens:
ole@mkt:~/Temp/dtest/fs-dtest-md$ cp target/{sitemap.xml,robots.txt} ../fs-dtest-app/
ole@mkt:~/Temp/dtest/fs-dtest-md$ npm run c
> @fireflysemantics/fs-dtest-md@1.0.1 c /home/ole/Temp/dtest/fs-dtest-md
> cp target/{sitemap.xml,robots.txt} ../fs-dtest-app/
cp: cannot stat 'target/{sitemap.xml,robots.txt}': No such file or directory
Thoughts?