refactor: rewrite configure script in pure Python

https://github.com/khuedoan/homelab/issues/30
This commit is contained in:
Khue Doan
2022-02-20 20:44:54 +07:00
committed by Khue Doan
parent 25ac9e0115
commit 368535f41c
3 changed files with 71 additions and 55 deletions

View File

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

View File

@ -1,8 +0,0 @@
#!/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