regex check for beginning of string -v allowing --vacuum to fall through (#2374)

This commit is contained in:
Russel Waters 2019-10-31 09:11:10 -04:00 committed by GitHub
commit ec289c134a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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