Skip to content

Commit faf3bd4

Browse files
author
Karl Rieb
committed
Fix release-check script to avoid conflict issues when running upload-file example.
1 parent fe3563b commit faf3bd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/release-check

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ examples_gradle clean
6969
examples_gradle classes
7070

7171
# run examples
72+
DATE=$(date -u '+%Y%m%d%H%M%S')
7273
run_example account-info "${AUTH_FILE}"
7374
cat /dev/urandom | head -c 1024 > "${tempfile}"
74-
run_example upload-file "${AUTH_FILE}" "${tempfile}" /test/dropbox-sdk-java/examples/upload-file/small-1KiB.dat
75+
run_example upload-file "${AUTH_FILE}" "${tempfile}" /test/dropbox-sdk-java/${DATE}/examples/upload-file/small-1KiB.dat
7576
cat /dev/urandom | head -c $(( 32 << 20 )) > "${tempfile}"
76-
run_example upload-file "${AUTH_FILE}" "${tempfile}" /test/dropbox-sdk-java/examples/upload-file/large-32MiB.dat
77+
run_example upload-file "${AUTH_FILE}" "${tempfile}" /test/dropbox-sdk-java/${DATE}/examples/upload-file/large-32MiB.dat
7778

7879
# build android
7980
android_gradle clean

0 commit comments

Comments
 (0)