mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-30 22:58:56 +07:00
refactor: rewrite configure script in pure Python
https://github.com/khuedoan/homelab/issues/30
This commit is contained in:
@ -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
|
@ -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
|
Reference in New Issue
Block a user