.docker: fix shellcheck issues

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgeniy Stratonikov 2021-10-16 15:25:55 +03:00
parent ab3df6cc52
commit eb07a4cfc6

View file

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