Merge pull request #2218 from nspcc-dev/shellcheck

.docker: fix shellcheck issues
This commit is contained in:
Roman Khimov 2021-10-19 17:39:43 +03:00 committed by GitHub
commit 66f2bb1b03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,10 @@
BIN=/usr/bin/neo-go
case $@ in
"node"*)
"node"*)
echo "=> Try to restore blocks before running node"
if [ -n "$ACC" -a -f "$ACC" ]; then
gunzip --stdout "$ACC" > /privnet.acc
if [ -f "$ACC" ]; then
gunzip --stdout "$ACC" >/privnet.acc
${BIN} db restore -p --config-path /config -i /privnet.acc
fi
;;