We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 243989f commit 98d994bCopy full SHA for 98d994b
1 file changed
.bin/repack-erofs.sh
@@ -508,7 +508,7 @@ fi
508
# Load metadata to check mount method
509
MOUNT_METHOD=""
510
if [ -f "${REPACK_INFO}/metadata.txt" ]; then
511
- source <(grep = "${REPACK_INFO}/metadata.txt")
+ source <(sed 's/=<none>/=""/g' "${REPACK_INFO}/metadata.txt")
512
fi
513
514
# Add filesystem selection before any operations
@@ -629,7 +629,7 @@ case $FS_CHOICE in
629
630
631
# Source metadata first to get variables
632
- source <(sed 's/=<none>/=""/g' "${REPACK_INFO}/metadata.txt")
+ source <(sed 's/=<none>/=""/g; s/=</="</g; s/>$/"/g' "${REPACK_INFO}/metadata.txt")
633
634
# Fallback logic to ensure critical variables are set if metadata is old
635
if [ -z "$ORIGINAL_BLOCK_COUNT" ] || [ -z "$ORIGINAL_BLOCK_SIZE" ]; then
0 commit comments