Skip to content

Commit

Permalink
#bugfix: update file format regex
Browse files Browse the repository at this point in the history
  • Loading branch information
llavaud committed Jul 11, 2017
1 parent 49c8441 commit b3ee50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kbt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ my $cmd = $ARGV[0];
HelpMessage('[ERROR] Bad number of arguments') if @ARGV != 1;
HelpMessage('[ERROR] Bad value for \'type\'') if $type !~ /^(?:all|search|visualization|dashboard)$/;
HelpMessage('[ERROR] Invalid hostname') if $host !~ /^[\w\-\.]+$/;
HelpMessage('[ERROR] Bad file format') if not $s3 and $file !~ /^[\/\w\-\.]+[^\/]$/;
HelpMessage('[ERROR] Bad file format') if $s3 and $file !~ /^s3:\/\/[\/\w\-\.]+[^\/]$/;
HelpMessage('[ERROR] Bad file format') if not $s3 and $file !~ /^[\/\w\-\.]*\w$/;
HelpMessage('[ERROR] Bad file format') if $s3 and $file !~ /^s3:\/\/[\/\w\-\.]*\w$/;
HelpMessage('[ERROR] Missing awscli binary') if $s3 and not which('aws');

if ($cmd eq 'list') {
Expand Down

0 comments on commit b3ee50d

Please sign in to comment.