Skip to content

Commit

Permalink
Fixed regular expression for S3 checking
Browse files Browse the repository at this point in the history
  • Loading branch information
antswart committed May 2, 2016
1 parent a893997 commit 2d0975f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/run-if
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def download_and_execute_command(command, args)
execute_name = command

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

Expand Down

0 comments on commit 2d0975f

Please sign in to comment.