Update docker-lotus-entrypoint.sh

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

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -z DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; 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
@ -12,7 +12,7 @@ if [ ! -z DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then
fi fi
# import wallet, if provided # import wallet, if provided
if [ ! -z DOCKER_LOTUS_IMPORT_WALLET ]; then if [ ! -z $DOCKER_LOTUS_IMPORT_WALLET ]; then
/usr/local/bin/lotus-shed keyinfo import "$DOCKER_LOTUS_IMPORT_WALLET" /usr/local/bin/lotus-shed keyinfo import "$DOCKER_LOTUS_IMPORT_WALLET"
fi fi