khuedoan-homelab/scripts/replace-domain

8 lines
192 B
Plaintext
Raw Normal View History

#!/bin/sh
CURRENT_DOMAIN="khuedoan.com"
git grep "${CURRENT_DOMAIN}" -- apps platform system scripts | cut -d ':' -f1 | uniq | while read p; do
sed -i "s/${CURRENT_DOMAIN}/${1}/g" $p
done