From 185f1bc2fb6f064e09f8ae222396d423ace68c14 Mon Sep 17 00:00:00 2001 From: Nigel Kukard Date: Tue, 20 Sep 2016 09:58:11 +0000 Subject: [PATCH] Better error reporting for missing IO::Prompt --- awit-ssh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/awit-ssh b/awit-ssh index 0812485..d2c3e64 100755 --- a/awit-ssh +++ b/awit-ssh @@ -43,14 +43,18 @@ if (!eval {require IO::Prompt; 1;}) { print STDERR "You're missing IO::Prompt, try 'apt-get install libio-prompt-perl'\n"; exit 1; } +## no critic (BuiltinFunctions::ProhibitStringyEval) +eval qq( + use IO::Prompt qw(prompt); +); +## use critic use Digest::SHA qw( sha1_hex ); -use IO::Prompt qw( prompt ); use User::pwent; my $NAME = "AWIT-SSH-Client"; -our $VERSION = "0.6.0"; +our $VERSION = "0.6.1"; print(STDERR "$NAME v$VERSION - Copyright (c) 2016, AllWorldIT\n\n"); -- GitLab