summaryrefslogtreecommitdiff
path: root/modules/Options.pm
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2011-05-24 14:51:44 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2011-05-24 14:51:44 +0000
commitfd3f29697d837cd593cf4f1a085e953152bd964f (patch)
tree3aa7e4441b2630f110422cd4a7614058cf2c6e96 /modules/Options.pm
parent847feac6c6c311226f80687803f8e4d7fcade568 (diff)
downloadMPC-fd3f29697d837cd593cf4f1a085e953152bd964f.tar.gz
ChangeLogTag: Tue May 24 14:42:55 UTC 2011 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'modules/Options.pm')
-rw-r--r--modules/Options.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/Options.pm b/modules/Options.pm
index 0a2c504e..14876ab0 100644
--- a/modules/Options.pm
+++ b/modules/Options.pm
@@ -550,6 +550,8 @@ sub options {
$self->optionError("Unknown option: $arg");
}
else {
+ ## We need to remove the trailing slash or back-slash so that when
+ ## we calculate the directory depth we don't get the wrong number.
$arg =~ s/[\/\\]+$//;
push(@input, $arg);
}