Update docker-lotus-miner-entrypoint.sh

Missing variable escape character
This commit is contained in:
KAYUII 2021-09-07 15:11:29 +08:00 committed by GitHub
parent 4f5fa3be3c
commit a75d67a42c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -z DOCKER_LOTUS_MINER_INIT ]; then if [ ! -z $DOCKER_LOTUS_MINER_INIT ]; then
GATE="$LOTUS_PATH"/date_initialized GATE="$LOTUS_PATH"/date_initialized
# Don't init if already initialized. # Don't init if already initialized.
if [ -f "GATE" ]; then if [ -f "$GATE" ]; then
echo lotus-miner already initialized. echo lotus-miner already initialized.
exit 0 exit 0
fi fi