khuedoan-homelab/scripts/replace-domain
2021-11-28 15:48:48 +07:00

8 lines
192 B
Bash
Executable File

#!/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