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

This fixes some oddities stopping and starting servers
This commit is contained in:
Nick Craig-Wood
2025-11-05 17:56:28 +00:00
parent bc5d1dfaf3
commit 6890bd7738
+1 -1
View File
@@ -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"