fixed SED delimeter due to timezone containing a forward slash.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user