X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=tools%2Fgenssl;h=dfe821f43b85a00d2d0a05b37b7b92931cb365a3;hb=327bacd3687f307a5f8586856a94b16c9e4370bf;hp=e4d5bf1f40b11190cb4351963b0829bd528d3ceb;hpb=124c17e14134a4999afc1a5e981ab7c75b3694b9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/tools/genssl b/tools/genssl index e4d5bf1f4..dfe821f43 100755 --- a/tools/genssl +++ b/tools/genssl @@ -2,9 +2,7 @@ # # InspIRCd -- Internet Relay Chat Daemon # -# Copyright (C) 2007 Dennis Friis -# Copyright (C) 2007 Craig Edwards -# Copyright (C) 2013 Peter Powell +# Copyright (C) 2013-2017, 2020 Sadie Powell # # This file is part of InspIRCd. InspIRCd is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public @@ -36,7 +34,7 @@ use File::Temp(); sub prompt($$) { my ($question, $default) = @_; - return prompt_string(1, $question, $default) if eval 'use FindBin;use lib $FindBin::RealDir;use make::console; 1'; + return prompt_string(1, $question, $default) if eval 'use File::Basename; use FindBin; use lib dirname($FindBin::RealDir); use make::console; 1'; say $question; print "[$default] => "; chomp(my $answer = );