mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:24:36 +07:00
9 lines
284 B
Bash
Executable File
9 lines
284 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CURRENT_REPO=$(echo 'github.com/khuedoan/homelab' | sed 's/\([.,/]\)/\\\1/g')
|
|
NEW_REPO=$(echo "${1}" | sed 's/\([.,/]\)/\\\1/g')
|
|
|
|
git grep "${CURRENT_REPO}" -- bootstrap platform | cut -d ':' -f1 | uniq | while read p; do
|
|
sed -i "s/${CURRENT_REPO}/${NEW_REPO}/g" $p
|
|
done
|