summaryrefslogtreecommitdiff
path: root/latest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'latest.pl')
-rwxr-xr-xlatest.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/latest.pl b/latest.pl
index 1bb7932..3baeaf2 100755
--- a/latest.pl
+++ b/latest.pl
@@ -6,7 +6,8 @@ use Getopt::Std;
our $opt_l; # mix and upload files
our $opt_v; # print log for all files
our $opt_n; # name/tag for file
-getopts('lavn:');
+our $opt_e; # endpoint for cortex upload
+getopts('lave:n:');
our $matches = 0;
if (scalar @ARGV) {
@@ -82,7 +83,7 @@ sub process($){
return 1;
}
- if (!$opt_l) {
+ if (! $opt_l) {
return 0;
}
print "\n";
@@ -90,7 +91,7 @@ sub process($){
print "\n";
print $name . ", $c samples\n";
print "\n";
- system('/bin/bash', 'mix.sh', $path, $name);
+ system('/bin/bash', 'mix.sh', $path, $name, $opt_e);
return 0;
}