feat(build): update project root file path to container home when creating tar

This commit is contained in:
yeti 2025-05-16 15:08:42 +01:00
parent 60eac985e6
commit 23870c3b24

View File

@ -6,4 +6,11 @@ if [ "$(basename "$(pwd -P)")" != "workspaces" ]; then
exit 1
fi
replace_home() {
sed -i "s|$1|$2|g" .config/fish/fish_variables
find .local/share/nvim/mason/packages -type f -exec sed -i "s|$1|$2|g" {} +
}
replace_home "$PWD" "/home/devuser"
tar -czf home.tar.gz --owner root --group secproc --xform "s,$PWD,/home/devuser," .config .local .ssh start.sh
replace_home "/home/devuser" "$PWD"