regex check for beginning of string -v allowing --vacuum to fall through (#2374)
This commit is contained in:
parent
ea81f9cab5
commit
ec289c134a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue