From feab5a82fa04cdd6367896e6287cad5d6772041f Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Fri, 22 Sep 2023 10:45:41 -0400 Subject: [PATCH] Added pre-setup to flatpak if its installed --- scripts/os_debian | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/os_debian b/scripts/os_debian index b59cbe5..a999bde 100755 --- a/scripts/os_debian +++ b/scripts/os_debian @@ -66,10 +66,15 @@ rsync --ignore-existing -raz trusted.gpg.d/ /etc/apt/trusted.gpg.d/ apt update failinstall="" +flatpak=0 echo " * Gathering installed packages" #xargs aptitude --schedule-only install < InstallOnly.list while read p; do + if [[ "$p" = "flatpak" ]]; then + flatpak=1 + fi + dpkg-query -s "$p" &>/dev/null if [[ "$?" -eq 1 ]]; then aptitude --schedule-only install "$p" @@ -89,6 +94,11 @@ echo "$failinstall" echo " * Restoring installed packages (please confirm)" aptitude install +if [[ "$flatpak" -eq 1 ]]; then + echo " * Adding flatpak repo: Flathub" + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo +fi + echo "Packages that failed to schedule for install:" echo "$failinstall" EOF