From dfe39eea36d497bd99d647ffe921f8c070266b10 Mon Sep 17 00:00:00 2001 From: exu Date: Fri, 17 Nov 2023 17:28:53 +0100 Subject: [PATCH] Remove list of previously selected packages --- arch-setup/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch-setup/install.sh b/arch-setup/install.sh index ec788e94..0e8e0b3b 100755 --- a/arch-setup/install.sh +++ b/arch-setup/install.sh @@ -39,6 +39,14 @@ echo Updating repos and packages sudo pacman -Syu echo Select packages to install +# remove previously selected packages on reruns +if [ -f "$setupdir/selectedpkgs.txt" ]; then + rm "$setupdir/selectedpkgs.txt" +fi +if [ -f "$setupdir/aurselectedpkgs.txt" ]; then + rm "$setupdir/aurselectedpkgs.txt" +fi + cmd=(dialog --separate-output --checklist "Select Desktop environment/Window manager:" 22 76 16) options=(100 "[WM] sway" off) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)