Skip to content

Commit c528c4f

Browse files
committed
Merge pull request #189 from antswart/master
Fixed regular expression checking for S3
2 parents f9dc421 + 2d0975f commit c528c4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utilities/run-if

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def download_and_execute_command(command, args)
7171
file_name = command
7272
execute_name = command
7373

74-
# If the command starts with s3:// or s3n://
75-
if command.match(/s3[n]{0,1}:\/\/.*/) then
74+
# If the command starts with s3://, s3n:// or s3a://
75+
if command.match(/^s3[n|a]{0,1}:\/\/.*/) then
7676
puts "Attempting to download file '#{command}'"
7777
system("/home/hadoop/bin/hadoop fs -copyToLocal #{command} ./")
7878

0 commit comments

Comments
 (0)