Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

testserver: make sure we don't overwrite the NAME variable set

Nick Craig-Wood6890bd77387c
diff --git a/fstest/testserver/init.d/run.bash b/fstest/testserver/init.d/run.bash
index 478cb70c5..e61e7fcc4 100644
--- a/fstest/testserver/init.d/run.bash
+++ b/fstest/testserver/init.d/run.bash
@@ -2,7 +2,7 @@
set -euo pipefail
BASE="${STATE_DIR:-${XDG_RUNTIME_DIR:-/tmp}/rclone-test-server}"
-NAME="$(basename "$0")"
+: "${NAME:=$(basename "$0")}"
ROOT="${BASE}/${NAME}"
STATE="${ROOT}/state"
LOCKF="${ROOT}/lock"