1
0
mirror of https://github.com/rclone/rclone.git synced 2025-11-23 21:44:49 +02:00

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 10:24:19 +00:00
parent bc5d1dfaf3
commit 6890bd7738

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"