]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix SCRIPT_DIR directory change
authoremerson <github@emersonveenstra.net>
Mon, 25 Sep 2017 18:24:08 +0000 (14:24 -0400)
committeremerson <github@emersonveenstra.net>
Mon, 25 Sep 2017 18:24:08 +0000 (14:24 -0400)
SCRIPT_DIR didn't automatically change directory if the user specified a
non-default directory

configure

index 7382acab683dab09a28250f3c47515fbc0afff44..1e66df00017cee3c139bbf9fb0f46ba0c626163a 100755 (executable)
--- a/configure
+++ b/configure
@@ -270,7 +270,7 @@ EOQ
 if (prompt_bool $interactive, $question, 0) {
        my $original_base_dir = $config{BASE_DIR};
        $config{BASE_DIR} = prompt_dir $interactive, 'In what directory do you wish to install the InspIRCd base?', $config{BASE_DIR};
-       foreach my $key (qw(BINARY_DIR CONFIG_DIR DATA_DIR LOG_DIR MANUAL_DIR MODULE_DIR)) {
+       foreach my $key (qw(BINARY_DIR CONFIG_DIR DATA_DIR LOG_DIR MANUAL_DIR MODULE_DIR SCRIPT_DIR)) {
                $config{$key} =~ s/^\Q$original_base_dir\E/$config{BASE_DIR}/;
        }
        $config{BINARY_DIR} = prompt_dir $interactive, 'In what directory should the InspIRCd binary be placed?', $config{BINARY_DIR};