<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi Folks,<br><br></div>I've been pondering this for a while but I'm stumped.  I've been working on a script that will let users search for a package across many repos at once.  The problem is that I can only get past pulp-admin validation when scripting the search if I basically echo the search into a new bash.  <br><br></div>I've tried just about every silly iteration of escapes and whatnot, but unless I echo it out to a new bash, I get "Validation failed for argument [--filters]: No JSON object could be decoded".<br><br></div>The reason for all the hoops is that I need the following to work ($1 being a search regex given when running the script as arg 1:<br><br>--filter '{"name":{"$regex":"$1","$options":"i"}}'<br><br></div>Anyhow, here is the script in it's current (ugly) form, which works:<br><a href="https://paste.fedoraproject.org/375944/65321343/">https://paste.fedoraproject.org/375944/65321343/</a><br><br></div>And here is what the section should be able to look like if it weren't getting hung up on the JSON validation:<br><br><a href="https://paste.fedoraproject.org/375945/32158214/">https://paste.fedoraproject.org/375945/32158214/</a><br><br></div>I want to overcome the silly trick w/ echoing into a new bash before I go any farther down the rabbit hole with returning custom fields and parallelizing the searches.<br><br></div>Any ideas?  <br><br></div>Thanks!<br></div> - Kodiak Firesmith<br></div>