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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user