From ec289c134a314ff88669596ecb467790aba02475 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Thu, 31 Oct 2019 09:11:10 -0400 Subject: [PATCH] regex check for beginning of string -v allowing --vacuum to fall through (#2374) --- docker/node/entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/node/entry.sh b/docker/node/entry.sh index 74a684af..b9c49713 100644 --- a/docker/node/entry.sh +++ b/docker/node/entry.sh @@ -51,7 +51,7 @@ if [[ "${TEMP_OPTS[0]}" = 'nano_node' ]]; then esac done for i in "${passthrough[@]}"; do - if [[ "$i" =~ "-v" ]]; then + if [[ "$i" =~ ^"-v" ]]; then db_size=${i//-v/} echo "Vacuum DB if over $db_size GB on startup" elif [[ "$i" = '-l' ]]; then