This commit is contained in:
Tibo De Peuter 2022-10-26 15:26:44 +02:00
parent ba8804ead0
commit 2c6860da87

View file

@ -1,4 +1,6 @@
post_install() {
echo "installing repo"
# Initiate the stow repo
git clone --depth 1 --progress https://git.depeuter.tk/tdpeuter/arch-pkgs /usr/share/tdpeuter/arch-pkgs
@ -7,14 +9,21 @@ post_install() {
}
post_upgrade() {
echo "moving directories"
cd /usr/share/tdpeuter/arch-pkgs/
echo "pulling repo"
sleep 2
git pull
user=$(who | cut -f1 -d' ')
packages=$(ls ./stow)
echo "stowing packages"
stow -d ./stow -t "/home/${user}" ${packages}
}
pre_remove() {
rm -rf /usr/share/tdpeuter/arch-pkgs
}