pre_upgrade() {echo"Cleaning up previous flutter installation."rm-rf"/opt/flutter"}
post_upgrade() {
NEW=$1
OLD=$2if[["$OLD"=="3.7"* ||"$OLD"=="3.6"* ]];thenifgrep-q"flutterusers"/etc/group;thenecho"Removing group flutterusers as no longer needed."
groupdel "flutterusers"fifi}