feat(build): update project root file path to container home when creating tar
This commit is contained in:
parent
60eac985e6
commit
23870c3b24
@ -6,4 +6,11 @@ if [ "$(basename "$(pwd -P)")" != "workspaces" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
tar -czf home.tar.gz --owner root --group secproc --xform "s,$PWD,/home/devuser," .config .local .ssh start.sh
|
||||||
|
replace_home "/home/devuser" "$PWD"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user