mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
feat: improve legacy metadata and admin compatibility (#2202)
This commit is contained in:
+2
-1
@@ -31,11 +31,12 @@ process_data_volumes() {
|
||||
VOLUME_LIST=""
|
||||
for vol in $VOLUME_LIST_RAW; do
|
||||
# Helper to manually expand {N..M} since sh doesn't support it on variables
|
||||
if echo "$vol" | grep -E -q "\{[0-9]+\.\.[0-9]+\}"; then
|
||||
if echo "$vol" | grep -E -q "\{[0-9]+\.\.\.?[0-9]+\}"; then
|
||||
PREFIX=${vol%%\{*}
|
||||
SUFFIX=${vol##*\}}
|
||||
RANGE=${vol#*\{}
|
||||
RANGE=${RANGE%\}}
|
||||
RANGE=$(echo "$RANGE" | sed 's/\.\.\./../')
|
||||
START=${RANGE%%..*}
|
||||
END=${RANGE##*..}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user