fixed SED delimeter due to timezone containing a forward slash.

This commit is contained in:
2026-03-04 07:40:36 +01:00
parent 38e5d938fe
commit 9e951cb7d8

View File

@@ -22,7 +22,7 @@ replace_string_recursive() {
fi
echo "Starting replacement of '$OLD_STRING' with '$NEW_STRING' in '$DIRECTORY'..."
find "$DIRECTORY" -type f -exec sed -i "s/$OLD_STRING/$NEW_STRING/g" {} +
find "$DIRECTORY" -type f -exec sed -i "s|$OLD_STRING|$NEW_STRING|g" {} +
if [ $? -eq 0 ]; then
echo "Replacement completed successfully."