summarylogtreecommitdiffstats
path: root/flutter.install
diff options
context:
space:
mode:
authorThe one with the braid2024-03-24 23:01:51 +0100
committerThe one with the braid2024-03-24 23:01:51 +0100
commit7216ed6b51d0746620796673871dddad7b704bb2 (patch)
treea57f113593f9b487f15c1e4b077d643b81d9905f /flutter.install
parent2942f591ec73f3a8c132cd77a1331507dc581475 (diff)
downloadaur-7216ed6b51d0746620796673871dddad7b704bb2.tar.gz
refactor: complete package rewrite
Signed-off-by: The one with the braid <info@braid.business>
Diffstat (limited to 'flutter.install')
-rw-r--r--flutter.install16
1 files changed, 2 insertions, 14 deletions
diff --git a/flutter.install b/flutter.install
index 5c896b72f6a6..87dedc666b11 100644
--- a/flutter.install
+++ b/flutter.install
@@ -1,13 +1,6 @@
pre_upgrade() {
- NEW=$1
- OLD=$2
-
- if [[ "$OLD" == "3.7"* || "$OLD" == "3.6"* ]]; then
- echo "Cleaning up previous flutter installation."
- rm -rf "/opt/flutter"
- fi
-
- rm -rf "/opt/flutter/.git"
+ echo "Cleaning up previous flutter installation."
+ rm -rf "/opt/flutter"
}
post_upgrade() {
@@ -20,10 +13,5 @@ post_upgrade() {
groupdel "flutterusers"
fi
fi
-
- mv "/opt/flutter/.git-refs" "/opt/flutter/.git"
}
-post_install() {
- mv "/opt/flutter/.git-refs" "/opt/flutter/.git"
-}