From 106f3e0806af9cfa0b374eb47fa77880a21dc56d Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Wed, 26 Oct 2022 15:26:44 +0200 Subject: [PATCH] Testing --- pkg/tdpeuter/tdpeuter-desktop.install | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +} +