aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xwebsite3
1 files changed, 2 insertions, 1 deletions
diff --git a/website b/website
index 370b38c..d85d72a 100755
--- a/website
+++ b/website
@@ -60,7 +60,6 @@ sub escaped_cmd {
sub dispatch {
my $action = shift;
my @args = @_;
- my @sub_args = grep { $_ ne $action } @args;
if (!defined $action && $help) {
pod2usage(
-verbose => 2,
@@ -73,8 +72,10 @@ sub dispatch {
-exitval => 2
);
} elsif ($action eq 'pastebin') {
+ my @sub_args = grep { $_ ne $action } @args;
escaped_cmd("./pastebin/website-pastebin", @sub_args);
} elsif ($action eq 'slides') {
+ my @sub_args = grep { $_ ne $action } @args;
escaped_cmd("./slides/website-slides", @sub_args);
} elsif ($action eq 'test') {
test();