package missing -meta.xml endings
When I download a package from a CI Job, it doesn't include the require "-meta.xml" ending for my metadata types. I wrote the following script to add them back one folder at a time. It would make more sense if Gearset just gave me the correct filenames when I download the package though.
# Gearset gives us a downloadable package to trouble shoot,
# but it doesn't have the -meta.xml text appended to it.
# Find all files with this ending and append -meta.xml to it.
find ./ -type f -name '*.flow' | xargs -I '{}' mv '{}' '{}'-meta.xml
find ./ -type f -name '*.layout' | xargs -I '{}' mv '{}' '{}'-meta.xml
find ./ -type f -name '*.object' | xargs -I '{}' mv '{}' '{}'-meta.xml
find ./ -type f -name '*.profile' | xargs -I '{}' mv '{}' '{}'-meta.xml
find ./ -type f -name '*.quickAction' | xargs -I '{}' mv '{}' '{}'-meta.xml
1
vote
Justin Lyon
shared this idea