diff --git a/pkg/tdpeuter/tdpeuter-desktop.install b/pkg/tdpeuter/tdpeuter-desktop.install index 50bb55c..4b10cca 100644 --- a/pkg/tdpeuter/tdpeuter-desktop.install +++ b/pkg/tdpeuter/tdpeuter-desktop.install @@ -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 +} +