make sure we have an interactivestub... I forgot the -I part from the old
authorespie <espie@openbsd.org>
Sat, 17 Jan 2015 13:20:04 +0000 (13:20 +0000)
committerespie <espie@openbsd.org>
Sat, 17 Jan 2015 13:20:04 +0000 (13:20 +0000)
script.

usr.sbin/pkg_add/OpenBSD/FwUpdate.pm

index 048cfd7..72e1fe1 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: FwUpdate.pm,v 1.9 2015/01/15 19:16:17 espie Exp $
+# $OpenBSD: FwUpdate.pm,v 1.10 2015/01/17 13:20:04 espie Exp $
 #
 # Copyright (c) 2014 Marc Espie <espie@openbsd.org>
 #
@@ -58,6 +58,7 @@ sub handle_options
        $state->{localbase} = OpenBSD::Paths->localbase;
        $state->{destdir} = '';
        $state->{wantntogo} = 0;
+       $state->{interactive} = OpenBSD::InteractiveStub->new($state);
        $state->{subst}->add('repair', 1);
        if ($state->opt('a') && @ARGV != 0) {
                $state->usage;