From 1bfb9581e512d702d5600768ec8c813cfd4215b1 Mon Sep 17 00:00:00 2001 From: "Francois B. (Makoto)" Date: Fri, 22 May 2020 22:56:27 +0200 Subject: [PATCH] auto uninstall unused dep while flatpak upd --- core_functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core_functions.sh b/core_functions.sh index fc489ee..1246a66 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -182,6 +182,12 @@ function updateSystem () { sudo flatpak update -y &>> $logFile ret_code=$? retCode $ret_code + + printf "[FLATPAK] uninstall --unused " + printf "\n[FLATPAK] uninstall --unused\n" &>> $logFile + sudo flatpak uninstall --unused -y &>> $logFile + ret_code=$? + retCode $ret_code fi repoAdded=0