Skip to content

Commit 83f16cc

Browse files
Update build_aegisum_mac.sh
1 parent 5ba6f6c commit 83f16cc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build_aegisum_mac.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,13 @@ cd Aegisum
131131
# --------------------------
132132
echo -e "${GREEN}>>> Patching Boost copy_option -> copy_options in wallet/bdb.cpp...${RESET}"
133133
BDB_CPP_FILE="wallet/bdb.cpp"
134-
if grep -q "fs::copy_file.*copy_option::overwrite_if_exists" "$BDB_CPP_FILE"; then
134+
135+
# Replace full line including function call for better reliability
136+
if grep -q "fs::copy_file(pathSrc, pathDest, fs::copy_option::overwrite_if_exists);" "$BDB_CPP_FILE"; then
135137
sed -i '' \
136-
-e 's/fs::copy_option::overwrite_if_exists/fs::copy_options::overwrite_existing/g' \
137-
-e 's/fs::copy_option/fs::copy_options/g' \
138+
-e 's|fs::copy_file(pathSrc, pathDest, fs::copy_option::overwrite_if_exists);|fs::copy_file(pathSrc, pathDest, fs::copy_options::overwrite_existing);|' \
138139
"$BDB_CPP_FILE"
139-
echo -e "${CYAN}Fully patched $BDB_CPP_FILE (namespace + enum)${RESET}"
140+
echo -e "${CYAN}Boost copy_file patch applied to $BDB_CPP_FILE${RESET}"
140141
else
141142
echo -e "${CYAN}✔ No patch needed for $BDB_CPP_FILE${RESET}"
142143
fi

0 commit comments

Comments
 (0)