grrr warning
authorespie <espie@openbsd.org>
Fri, 26 Aug 2016 18:19:21 +0000 (18:19 +0000)
committerespie <espie@openbsd.org>
Fri, 26 Aug 2016 18:19:21 +0000 (18:19 +0000)
usr.sbin/pkg_add/OpenBSD/PkgCheck.pm

index 54c6e56..d3d74b6 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: PkgCheck.pm,v 1.61 2016/08/25 16:27:16 jmc Exp $
+# $OpenBSD: PkgCheck.pm,v 1.62 2016/08/26 18:19:21 espie Exp $
 #
 # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
 #
@@ -312,7 +312,7 @@ sub handle_options
        $self->SUPER::handle_options('fFB:q',
                '[-FfIimnqvx] [-B pkg-destdir] [-D value]');
        $self->{force} = $self->opt('f');
-       $self->{quick} = $self->opt('q');
+       $self->{quick} = $self->opt('q') // 0;
        $self->{filesystem} = $self->opt('F');
        if (defined $self->opt('B')) {
                $self->{destdir} = $self->opt('B');