X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-upgrade.git;a=blobdiff_plain;f=src%2Ffunctions.sh;fp=src%2Ffunctions.sh;h=2b4d74370bbdd1c15092ff59d8a9b4e70395134e;hp=d7f2e202274592cd33b39da0f7909c2cbf01a066;hb=89b053f3753b16731c1d16bf54ad60a7ac7e7786;hpb=8a2a6fa288b2d869896b989632059c11ce977e48 diff --git a/src/functions.sh b/src/functions.sh index d7f2e20..2b4d743 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -168,6 +168,17 @@ remove_x() { } remove_bloat() { +### zelja 2023-07-06 +tempdelfile=$(mktemp /tmp/tempdelfile.XXXX) + +for a in $bloats; do echo apt-get -qq -y remove $a 2\> /dev/null ; done > $tempdelfile + +/bin/bash $tempdelfile +rm $tempdelfile + +return 0 + + local to_remove add_this i j n text to_show cmd tmpfile installed local update_selections pkgs_to_deselect pkgs_to_remove oldifs pkglist text="$msg_remove_bloat" @@ -226,6 +237,9 @@ remove_bloat() { } remove_cn_bloat() { +### Sve obrisano u remove_bloat() +return 0 + local installed pkg cn_pkgs dialog_list selection cn_del to_del del_pkgs # get installed packages