bin/second_curtain in second_curtain-0.3.0 vs bin/second_curtain in second_curtain-0.4.0
- old
+ new
@@ -25,13 +25,10 @@
path_prefix = ENV['UPLOAD_IOS_SNAPSHOT_BUCKET_PREFIX'] || '/'
if !path_prefix.end_with?('/')
path_prefix += '/'
end
- folder_name = ENV['UPLOAD_IOS_SNAPSHOT_FOLDER_NAME']
- if !folder_name
- folder_name = ENV['TRAVIS_JOB_ID']
- end
+ folder_name = ENV['UPLOAD_IOS_SNAPSHOT_FOLDER_NAME'] || ENV['TRAVIS_JOB_ID'] || ENV['CIRCLE_BUILD_NUM']
if !folder_name
now = DateTime.now()
folder_name = now.strftime('%Y-%m-%d--%H-%M')
end