Re: cook: best way to handle commands that normally fail
"Pendergraft, Jerry" <[email protected]> Mon, 24 Feb 2014 16:03:30 +0000
| Newsgroups | gmane.comp.version-control.aegis.user |
|---|---|
| Message-ID | <[email protected]> |
--===============4892390685988349874== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_04892597AE14408F9B84AF34D38B6205sjmcom_" --_000_04892597AE14408F9B84AF34D38B6205sjmcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Make the command itself handle the code. Something like diff a b || test $? -eq 1 Should do it Sent from my iPhone On Feb 23, 2014, at 22:49, "Aryeh Friedman" <[email protected]<mailt= o:[email protected]>> wrote: I need to diff some files against the installed ones during the cooking of = a project... in new installs this means they are always different (exit cod= e 1) how do I get cook to ignore this without resorting to set errok? -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org _______________________________________________ Aegis-users mailing list [email protected]<mailto:[email protected]> https://lists.auug.org.au/listinfo/aegis-users This communication, including any attachments, may contain information that= is proprietary, privileged, confidential or legally exempt from disclosure= . If you are not a named addressee, you are hereby notified that you are no= t authorized to read, print, retain a copy of or disseminate any portion of= this communication without the consent of the sender and that doing so may= be unlawful. If you have received this communication in error, please imme= diately notify the sender via return e-mail and delete it from your system. --_000_04892597AE14408F9B84AF34D38B6205sjmcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= > </head> <body dir=3D"auto"> <div>Make the command itself handle the code. Something like</div> <div> diff a b || test $? -eq 1</div> <div>Should do it<br> <br> Sent from my iPhone</div> <div><br> On Feb 23, 2014, at 22:49, "Aryeh Friedman" <<a href=3D"mailto= :[email protected]">[email protected]</a>> wrote:<br> <br> </div> <blockquote type=3D"cite"> <div> <div dir=3D"ltr">I need to diff some files against the installed ones durin= g the cooking of a project... in new installs this means they are always di= fferent (exit code 1) how do I get cook to ignore this without resorting to= set errok?<br clear=3D"all"> <div><br> -- <br> <div dir=3D"ltr">Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.P= etiteCloud.org" target=3D"_blank"> http://www.PetiteCloud.org</a><br> </div> </div> </div> </div> </blockquote> <blockquote type=3D"cite"> <div><span>_______________________________________________</span><br> <span>Aegis-users mailing list</span><br> <span><a href=3D"mailto:[email protected]">[email protected]= ug.org.au</a></span><br> <span><a href=3D"https://lists.auug.org.au/listinfo/aegis-users">https://li= sts.auug.org.au/listinfo/aegis-users</a></span><br> </div> </blockquote> <br> This communication, including any attachments, may contain information that= is proprietary, privileged, confidential or legally exempt from disclosure= . If you are not a named addressee, you are hereby notified that you are no= t authorized to read, print, retain a copy of or disseminate any portion of this communication without the con= sent of the sender and that doing so may be unlawful. If you have received = this communication in error, please immediately notify the sender via retur= n e-mail and delete it from your system. </body> </html> --_000_04892597AE14408F9B84AF34D38B6205sjmcom_-- --===============4892390685988349874== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQWVnaXMtdXNl cnMgbWFpbGluZyBsaXN0CkFlZ2lzLXVzZXJzQGxpc3RzLmF1dWcub3JnLmF1Cmh0dHBzOi8vbGlz dHMuYXV1Zy5vcmcuYXUvbGlzdGluZm8vYWVnaXMtdXNlcnMK --===============4892390685988349874==--