X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=tools%2Fgenssl;h=dfe821f43b85a00d2d0a05b37b7b92931cb365a3;hb=7d597daf0483f3396aca61f1f6f927cf81214ea5;hp=e4d5bf1f40b11190cb4351963b0829bd528d3ceb;hpb=02497bfa999da26c19a92d8620c35bb97f1da711;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 = );