Re: Exit status of pkg_add

2021-10-21 Thread Marc Espie
= shift; > $quirks->filter_obsolete([$name], $state); > }); > } > > Is it OK? > > On 10/18/21 16:53, Yuichiro NAITO wrote: > > Hi, I have a question about exit status of pkg_add command. > > > > When I wrote a pac

Re: Exit status of pkg_add

2021-10-18 Thread YASUOKA Masahiko
sub { > my $quirks = shift; > $quirks->filter_obsolete([$name], $state); > }); > } > > Is it OK? > > On 10/18/21 16:53, Yuichiro NAITO wrote: >> Hi, I have a question about ex

Re: Exit status of pkg_add

2021-10-18 Thread Yuichiro NAITO
, Yuichiro NAITO wrote: Hi, I have a question about exit status of pkg_add command. When I wrote a package install script which included typo in a package name (of course it's my fault), the script didn't stop in spite of `set -e`. Because pkg_add command returns 0 even if a packa