burgernotes-server/fixapi.sh

9 lines
267 B
Bash
Raw Normal View History

2024-03-29 19:59:40 +00:00
#!/bin/bash
# Define the old and new URLs
OLD_URL="https://notes.canary.hectabit.org/api"
NEW_URL="https://notes.canary.hectabit.org/api"
# Recursively search and replace in files under the current directory
find . -type f -exec sed -i "s|$OLD_URL|$NEW_URL|g" {} +