mirror of https://github.com/rclone/rclone
testserver: make sure we don't overwrite the NAME variable set
This fixes some oddities stopping and starting servers
This commit is contained in:
parent
bc5d1dfaf3
commit
6890bd7738
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue