From: afresh1 Date: Sat, 19 Feb 2022 02:19:42 +0000 (+0000) Subject: Ignore sitelib in perl snippet X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=32367434ef46fea5a3354ec341f9bedbb6b48e67;p=openbsd Ignore sitelib in perl snippet All base tools should be doing that and I forgot. While here remove the no longer necessary TERM handler, it was only needed so a TERM signal would still trigger the END block. --- diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh index 1398b0f2b27..2d3a2e92b88 100644 --- a/usr.sbin/fw_update/fw_update.sh +++ b/usr.sbin/fw_update/fw_update.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_update.sh,v 1.38 2022/02/15 08:02:03 espie Exp $ +# $OpenBSD: fw_update.sh,v 1.39 2022/02/19 02:19:42 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -206,12 +206,12 @@ lock_db() { perl <<'EOL' |& use v5.16; use warnings; + no lib ('/usr/local/libdata/perl5/site_perl'); use OpenBSD::PackageInfo qw< lock_db >; $|=1; lock_db(0); - $SIG{TERM} = sub { exit }; say $$; sleep;