From 75eac99ea1bc9cb556657f91ff699e79150b8782 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 29 May 2020 18:57:22 -0700 Subject: [PATCH] PBot: strip trailing directory separator from directory command-line overrides --- PBot/PBot.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PBot/PBot.pm b/PBot/PBot.pm index 957dbe2c..11f9f874 100644 --- a/PBot/PBot.pm +++ b/PBot/PBot.pm @@ -75,6 +75,7 @@ sub initialize { # check command-line arguments for directory overrides my $override = $1; my $value = $2; + $value =~ s/[\\\/]$//; # strip trailing directory separator $data_dir = $value if $override eq 'data_dir'; $module_dir = $value if $override eq 'module_dir'; $plugin_dir = $value if $override eq 'plugin_dir';