mirror of
https://github.com/rclone/rclone
synced 2024-11-24 01:26:25 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
34 lines
910 B
Bash
Executable File
34 lines
910 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Example script for git bisect run
|
|
#
|
|
# Copy this file into /tmp say before running as it will be
|
|
# overwritten by the bisect as it is checked in.
|
|
#
|
|
# Change the test below to find out whether rclone is working or not
|
|
#
|
|
# Run from the project root
|
|
#
|
|
# git bisect start
|
|
# git checkout master
|
|
# git bisect bad
|
|
# git checkout v1.41 (or whatever is the first good one)
|
|
# git bisect good
|
|
# git bisect run /tmp/bisect-rclone.sh
|
|
|
|
set -e
|
|
|
|
# Compile notifying git on compile failure
|
|
make || exit 125
|
|
rclone version
|
|
|
|
# Test whatever it is that is going wrong - exit with non zero exit code on failure
|
|
# commented out examples follow
|
|
|
|
# truncate -s 10M /tmp/10M
|
|
# rclone delete azure:rclone-test1/10M || true
|
|
# rclone --retries 1 copyto -vv /tmp/10M azure:rclone-test1/10M --azureblob-upload-cutoff 1M
|
|
|
|
# rm -f "/tmp/tests's.docx" || true
|
|
# rclone -vv --retries 1 copy "drive:test/tests's.docx" /tmp
|